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
49d27c82
Commit
49d27c82
authored
Dec 23, 2000
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove superfluous semicolons
parent
f07aad17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
Lib/multifile.py
Lib/multifile.py
+1
-1
Lib/netrc.py
Lib/netrc.py
+1
-1
Lib/shlex.py
Lib/shlex.py
+6
-6
No files found.
Lib/multifile.py
View file @
49d27c82
...
...
@@ -86,7 +86,7 @@ class MultiFile:
return
line
else
:
# Ignore trailing whitespace on marker lines
k
=
len
(
line
)
-
1
;
k
=
len
(
line
)
-
1
while
line
[
k
]
in
string
.
whitespace
:
k
=
k
-
1
marker
=
line
[:
k
+
1
]
...
...
Lib/netrc.py
View file @
49d27c82
...
...
@@ -46,7 +46,7 @@ class netrc:
tt
=
lexer
.
get_token
()
if
tt
==
''
or
tt
==
'machine'
or
tt
==
'default'
or
tt
==
'macdef'
:
if
toplevel
==
'macdef'
:
break
;
break
elif
login
and
password
:
self
.
hosts
[
entryname
]
=
(
login
,
account
,
password
)
lexer
.
push_token
(
tt
)
...
...
Lib/shlex.py
View file @
49d27c82
...
...
@@ -22,7 +22,7 @@ class shlex:
self
.
whitespace
=
'
\
t
\
r
\
n
'
self
.
quotes
=
'
\
'
"'
self
.
state
=
' '
self
.
pushback
=
[]
;
self
.
pushback
=
[]
self
.
lineno
=
1
self
.
debug
=
0
self
.
token
=
''
...
...
@@ -36,7 +36,7 @@ class shlex:
"Push a token onto the stack popped by the get_token method"
if
self
.
debug
>=
1
:
print
"shlex: pushing token "
+
`tok`
self
.
pushback
=
[
tok
]
+
self
.
pushback
;
self
.
pushback
=
[
tok
]
+
self
.
pushback
def
get_token
(
self
):
"Get a token from the input stream (or from stack if it's nonempty)"
...
...
@@ -83,18 +83,18 @@ class shlex:
"Read a token from the input stream (no pushback or inclusions)"
tok
=
''
while
1
:
nextchar
=
self
.
instream
.
read
(
1
)
;
nextchar
=
self
.
instream
.
read
(
1
)
if
nextchar
==
'
\
n
'
:
self
.
lineno
=
self
.
lineno
+
1
if
self
.
debug
>=
3
:
print
"shlex: in state"
,
repr
(
self
.
state
),
\
"I see character:"
,
repr
(
nextchar
)
if
self
.
state
is
None
:
self
.
token
=
''
;
# past end of file
self
.
token
=
''
# past end of file
break
elif
self
.
state
==
' '
:
if
not
nextchar
:
self
.
state
=
None
;
# end of file
self
.
state
=
None
# end of file
break
elif
nextchar
in
self
.
whitespace
:
if
self
.
debug
>=
2
:
...
...
@@ -125,7 +125,7 @@ class shlex:
break
elif
self
.
state
==
'a'
:
if
not
nextchar
:
self
.
state
=
None
;
# end of file
self
.
state
=
None
# end of file
break
elif
nextchar
in
self
.
whitespace
:
if
self
.
debug
>=
2
:
...
...
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