Commit 1e794f66 authored by Éric Araujo's avatar Éric Araujo

Remove obsolete 'rU' mode in Tools/scripts too (see be5b8d1ded34)

parent cb395187
......@@ -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
......
......@@ -42,7 +42,7 @@ def _open(fullpath):
return None
try:
return open(fullpath, 'rU')
return open(fullpath)
except IOError as err: # Access denied, or a special file - ignore it
print_debug("%s: access denied: %s" % (fullpath, err))
return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment