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

This commit is contained in:
Éric Araujo 2011-05-05 20:18:16 +02:00
parent cb395187d0
commit 1e794f66f4
2 changed files with 3 additions and 3 deletions

View file

@ -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