summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-12-23 14:20:24 +0000
committerAndrew M. Kuchling <amk@amk.ca>2000-12-23 14:20:24 +0000
commit49d27c82e62a555d415aaf63562fd22971a2961d (patch)
tree4ba02d9d56099c5d7d0a628ca5db979443ff000f
parentf07aad171a57dcc1e661d56660eb4ca51a2944d9 (diff)
downloadcpython-git-49d27c82e62a555d415aaf63562fd22971a2961d.tar.gz
Remove superfluous semicolons
-rw-r--r--Lib/multifile.py2
-rw-r--r--Lib/netrc.py2
-rw-r--r--Lib/shlex.py12
3 files changed, 8 insertions, 8 deletions
diff --git a/Lib/multifile.py b/Lib/multifile.py
index 54de947798..0b51b55a76 100644
--- a/Lib/multifile.py
+++ b/Lib/multifile.py
@@ -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]
diff --git a/Lib/netrc.py b/Lib/netrc.py
index e3374b062a..679669fb40 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -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)
diff --git a/Lib/shlex.py b/Lib/shlex.py
index fd7535a3c6..6d5659eea8 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -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: