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
0b7b4b8a
Commit
0b7b4b8a
authored
Sep 18, 2000
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
satisfy the tabnanny
parent
9082cdd0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
358 additions
and
358 deletions
+358
-358
Tools/scripts/eptags.py
Tools/scripts/eptags.py
+15
-14
Tools/scripts/parseentities.py
Tools/scripts/parseentities.py
+21
-21
Tools/scripts/trace.py
Tools/scripts/trace.py
+322
-323
No files found.
Tools/scripts/eptags.py
View file @
0b7b4b8a
...
@@ -34,7 +34,8 @@ def treat_file(file, outfp):
...
@@ -34,7 +34,8 @@ def treat_file(file, outfp):
size = 0
size = 0
while 1:
while 1:
line = fp.readline()
line = fp.readline()
if not line: break
if not line:
break
lineno = lineno + 1
lineno = lineno + 1
m = matcher.search(line)
m = matcher.search(line)
if m:
if m:
...
...
Tools/scripts/parseentities.py
View file @
0b7b4b8a
Tools/scripts/trace.py
View file @
0b7b4b8a
...
@@ -150,7 +150,6 @@ class Ignore:
...
@@ -150,7 +150,6 @@ class Ignore:
self
.
_ignore
[
modulename
]
=
0
self
.
_ignore
[
modulename
]
=
0
return
0
return
0
def
run
(
trace
,
cmd
):
def
run
(
trace
,
cmd
):
import
__main__
import
__main__
dict
=
__main__
.
__dict__
dict
=
__main__
.
__dict__
...
@@ -330,8 +329,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
...
@@ -330,8 +329,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
try
:
try
:
lines
=
open
(
filename
,
'r'
).
readlines
()
lines
=
open
(
filename
,
'r'
).
readlines
()
except
IOError
,
err
:
except
IOError
,
err
:
sys
.
stderr
.
write
(
sys
.
stderr
.
write
(
"%s: Could not open %s for reading "
\
"%s: Could not open %s for reading
because: %s - skipping
\
n
"
%
\
"
because: %s - skipping
\
n
"
%
\
(
"trace"
,
`filename`
,
err
.
strerror
))
(
"trace"
,
`filename`
,
err
.
strerror
))
continue
continue
...
@@ -350,8 +349,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
...
@@ -350,8 +349,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
outfile
=
open
(
listfilename
,
'w'
)
outfile
=
open
(
listfilename
,
'w'
)
except
IOError
,
err
:
except
IOError
,
err
:
sys
.
stderr
.
write
(
sys
.
stderr
.
write
(
'%s: Could not open %s for writing because: %s - skipping
\
n
'
%
'%s: Could not open %s for writing because: %s"
\
(
"trace"
,
`listfilename`
,
err
.
strerror
))
"- skipping
\
n
'
%
(
"trace"
,
`listfilename`
,
err
.
strerror
))
continue
continue
# If desired, get a list of the line numbers which represent
# If desired, get a list of the line numbers which represent
...
@@ -396,8 +395,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
...
@@ -396,8 +395,8 @@ def create_results_log(results, dirname = ".", show_missing = 1,
marshal
.
dump
(
results
.
modules
,
marshal
.
dump
(
results
.
modules
,
open
(
os
.
path
.
join
(
dirname
,
"modules"
),
"w"
))
open
(
os
.
path
.
join
(
dirname
,
"modules"
),
"w"
))
except
IOError
,
err
:
except
IOError
,
err
:
sys
.
stderr
.
write
(
"cannot save counts/modules
files because %s"
%
sys
.
stderr
.
write
(
"cannot save counts/modules
"
\
err
.
strerror
)
"files because %s"
%
err
.
strerror
)
# There is a lot of code shared between these two classes even though
# There is a lot of code shared between these two classes even though
# it is straightforward to make a super class to share code. However,
# it is straightforward to make a super class to share code. However,
...
...
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