diff options
| author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-02-22 11:53:09 +0200 |
|---|---|---|
| committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-02-22 11:53:09 +0200 |
| commit | 1742fb183a82019bddafe5ef90f2ed3716c9976d (patch) | |
| tree | ab77f818849df8d7ed86cf83827a521dd7581477 /Tools/scripts/findnocoding.py | |
| parent | 5f93508eb805bb8ff70b227a134103595e67c7ea (diff) | |
| parent | 4b6f66235174e14d483b86282f3a1c0685ebb775 (diff) | |
| download | cpython-1742fb183a82019bddafe5ef90f2ed3716c9976d.tar.gz | |
Merge: #14053: Fix "make patchcheck" to work with MQ.
Patch by Francisco Martín Brugué
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 |
