Skip to content
Permalink
Browse files

x

  • Loading branch information
stnbu committed Sep 29, 2018
1 parent 3159e39 commit 37abab052a4eb7f774717a50baa3756d15f5be9c
Showing with 1 addition and 1 deletion.
  1. +1 −1 patch.py
@@ -13,7 +13,7 @@

def patch_files(paths):
# not perfect, but perfect enough
name_main_re = re.compile('.*if.* .*__name__.*==.*__main__')
name_main_re = re.compile('^if.* .*__name__.*==.*__main__')
for path in paths:
wrote = False
orig = open(path, 'r')

0 comments on commit 37abab0

Please sign in to comment.