From e97d73a0e1e274726b2e467131d29abdb2ff7d26 Mon Sep 17 00:00:00 2001 From: Ozdemircili Date: Mon, 26 Aug 2013 18:05:34 +0200 Subject: [PATCH] Took out listing of Readme and License file on cheatsheets --- cheat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cheat b/cheat index 6a054e3..0af41db 100755 --- a/cheat +++ b/cheat @@ -41,7 +41,9 @@ def cheat_files(cheat_directories): for cheat_dir in reversed(cheat_directories): cheats.update(dict([(cheat, cheat_dir) for cheat in os.listdir(cheat_dir) - if not cheat.startswith('.') + if not cheat.endswith('md') + and not cheat.startswith('.') + and not cheat.startswith('LICENSE') and not cheat.startswith('__')])) return cheats @@ -82,6 +84,7 @@ def main(): # if it does not, say so else: print 'No cheatsheet found for %s.' % keyphrase + def pretty_print(filename):