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
d5c57e16
Commit
d5c57e16
authored
Apr 01, 1993
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Microfixes
parent
5146ea3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
Demo/scripts/eqfix.py
Demo/scripts/eqfix.py
+2
-2
Tools/scripts/methfix.py
Tools/scripts/methfix.py
+1
-1
Tools/scripts/mkreal.py
Tools/scripts/mkreal.py
+2
-1
No files found.
Demo/scripts/eqfix.py
View file @
d5c57e16
#! /ufs/guido/bin/sgi/python
#! /usr/local/python
#! /usr/local/
bin/
python
# Fix Python source files to use the new equality test operator, i.e.,
# if x = y: ...
...
...
@@ -42,7 +42,7 @@ rep = sys.stdout.write
def
main
():
bad
=
0
if
not
sys
.
argv
[
1
:]:
# No arguments
err
(
'usage: '
+
argv
[
0
]
+
' file-or-directory ...
\
n
'
)
err
(
'usage: '
+
sys
.
argv
[
0
]
+
' file-or-directory ...
\
n
'
)
sys
.
exit
(
2
)
for
arg
in
sys
.
argv
[
1
:]:
if
os
.
path
.
isdir
(
arg
):
...
...
Tools/scripts/methfix.py
View file @
d5c57e16
...
...
@@ -40,7 +40,7 @@ rep = sys.stdout.write
def
main
():
bad
=
0
if
not
sys
.
argv
[
1
:]:
# No arguments
err
(
'usage: '
+
argv
[
0
]
+
' file-or-directory ...
\
n
'
)
err
(
'usage: '
+
sys
.
argv
[
0
]
+
' file-or-directory ...
\
n
'
)
sys
.
exit
(
2
)
for
arg
in
sys
.
argv
[
1
:]:
if
os
.
path
.
isdir
(
arg
):
...
...
Tools/scripts/mkreal.py
View file @
d5c57e16
#! /usr/local/python
#! /usr/local/
bin/
python
# mkreal
#
...
...
@@ -45,6 +45,7 @@ def mkrealdir(name):
def
main
():
sys
.
stdout
=
sys
.
stderr
progname
=
os
.
path
.
basename
(
sys
.
argv
[
0
])
if
progname
==
'-c'
:
progname
=
'mkreal'
args
=
sys
.
argv
[
1
:]
if
not
args
:
print
'usage:'
,
progname
,
'path ...'
...
...
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