Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1e794f66
Commit
1e794f66
authored
May 05, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete 'rU' mode in Tools/scripts too (see be5b8d1ded34)
parent
cb395187
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Tools/scripts/findnocoding.py
Tools/scripts/findnocoding.py
+2
-2
Tools/scripts/pysource.py
Tools/scripts/pysource.py
+1
-1
No files found.
Tools/scripts/findnocoding.py
View file @
1e794f66
...
...
@@ -2,7 +2,7 @@
"""List all those Python files that require a coding directive
Usage: nocoding.py dir1 [dir2...]
Usage:
find
nocoding.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
...
...
Tools/scripts/pysource.py
View file @
1e794f66
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment