diff options
author | Éric Araujo <merwok@netwok.org> | 2011-05-26 16:35:14 +0200 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-05-26 16:35:14 +0200 |
commit | f46676d48fe0e06ee76c6158cb915c20e8751ced (patch) | |
tree | bd77e24b11f2a378e60ff432ef9f0330dfb3f82f /Tools/scripts/findnocoding.py | |
parent | 92236e5651ade38b31281ed92e2c2846f8ccd0d8 (diff) | |
parent | aa1ef2d735772b7a4c4b4164998da2883208ea48 (diff) | |
download | cpython-git-f46676d48fe0e06ee76c6158cb915c20e8751ced.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 |