diff options
author | Éric Araujo <merwok@netwok.org> | 2011-05-05 18:18:16 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-05-05 18:18:16 (GMT) |
commit | 1e794f66f4503561f651547d08653d8ee3a87c34 (patch) | |
tree | 5a55a912c59d45979b017dd21637e715a6041703 /Tools/scripts/findnocoding.py | |
parent | cb395187d02b9f6a2a3114d9ffa3fa77faca5008 (diff) | |
download | cpython-1e794f66f4503561f651547d08653d8ee3a87c34.zip cpython-1e794f66f4503561f651547d08653d8ee3a87c34.tar.gz cpython-1e794f66f4503561f651547d08653d8ee3a87c34.tar.bz2 |
Remove obsolete 'rU' mode in Tools/scripts too (see be5b8d1ded34)
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 77607ce..c42fa7c 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 |