diff options
author | Éric Araujo <merwok@netwok.org> | 2011-05-25 18:22:11 +0200 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-05-25 18:22:11 +0200 |
commit | 0f67a99fc982ebad6b489a319c2ac521d64ea11e (patch) | |
tree | 9893faddaac9028b054c3e652b0e0c43c1af08a8 /Tools/scripts/findnocoding.py | |
parent | 559b5f1ca0a5dec9d485f01895b61e3d7da5075c (diff) | |
parent | 17b60f0367db0ae8cd6d4ce6a6ea8330b4802029 (diff) | |
download | cpython-git-0f67a99fc982ebad6b489a319c2ac521d64ea11e.tar.gz |
Branch merge
Diffstat (limited to 'Tools/scripts/findnocoding.py')
-rwxr-xr-x | Tools/scripts/findnocoding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index 77607ce137..c42fa7cfa3 100755 --- a/Tools/scripts/findnocoding.py +++ b/Tools/scripts/findnocoding.py @@ -2,7 +2,7 @@ """List all those Python files that require a coding directive -Usage: nocoding.py dir1 [dir2...] +Usage: findnocoding.py dir1 [dir2...] """ __author__ = "Oleg Broytmann, Georg Brandl" @@ -50,7 +50,7 @@ def has_correct_encoding(text, codec): def needs_declaration(fullpath): try: - infile = open(fullpath, 'rU') + infile = open(fullpath) except IOError: # Oops, the file was removed - ignore it return None |