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
bae7734e
Commit
bae7734e
authored
Aug 04, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use universal newline input when scanning header files.
parent
0c069924
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Tools/bgen/bgen/scantools.py
Tools/bgen/bgen/scantools.py
+3
-3
No files found.
Tools/bgen/bgen/scantools.py
View file @
bae7734e
...
@@ -219,7 +219,7 @@ if missing: raise "Missing Types"
...
@@ -219,7 +219,7 @@ if missing: raise "Missing Types"
def
openrepairfile
(
self
,
filename
=
"REPAIR"
):
def
openrepairfile
(
self
,
filename
=
"REPAIR"
):
try
:
try
:
return
open
(
filename
,
"r"
)
return
open
(
filename
,
"r
U
"
)
except
IOError
,
msg
:
except
IOError
,
msg
:
print
`filename`
,
":"
,
msg
print
`filename`
,
":"
,
msg
print
"Cannot open repair file -- assume no repair needed"
print
"Cannot open repair file -- assume no repair needed"
...
@@ -359,12 +359,12 @@ if missing: raise "Missing Types"
...
@@ -359,12 +359,12 @@ if missing: raise "Missing Types"
fullname = os.path.join(dir, filename)
fullname = os.path.join(dir, filename)
#self.report("trying full name %s", `fullname`)
#self.report("trying full name %s", `fullname`)
try:
try:
return open(fullname, 'r')
return open(fullname, 'r
U
')
except IOError:
except IOError:
pass
pass
# If not on the path, or absolute, try default open()
# If not on the path, or absolute, try default open()
try:
try:
return open(filename, 'r')
return open(filename, 'r
U
')
except IOError, arg:
except IOError, arg:
raise IOError, (arg, filename)
raise IOError, (arg, filename)
...
...
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