aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-15 01:36:40 +0000
committerTim Peters <tim.peters@gmail.com>2001-01-15 01:36:40 +0000
commit495ad3c8ccb9ed3554177a3e8687676c78e667de (patch)
treed19e1856ac8aa7f3059ef66646d316393752da90 /Lib/shlex.py
parentWhitespace normalization. (diff)
downloadcpython-495ad3c8ccb9ed3554177a3e8687676c78e667de.tar.gz
cpython-495ad3c8ccb9ed3554177a3e8687676c78e667de.tar.bz2
cpython-495ad3c8ccb9ed3554177a3e8687676c78e667de.zip
Whitespace normalization.
Diffstat (limited to 'Lib/shlex.py')
-rw-r--r--Lib/shlex.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py
index 7bf81e2caea..de9b9740b1f 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -1,6 +1,6 @@
"""A lexical analyzer class for simple shell-like syntaxes."""
-# Module and documentation by Eric S. Raymond, 21 Dec 1998
+# Module and documentation by Eric S. Raymond, 21 Dec 1998
# Input stacking and error message cleanup added by ESR, March 2000
import os.path
@@ -8,7 +8,7 @@ import sys
class shlex:
- "A lexical analyzer class for simple shell-like syntaxes."
+ "A lexical analyzer class for simple shell-like syntaxes."
def __init__(self, instream=None, infile=None):
if instream:
self.instream = instream
@@ -88,7 +88,7 @@ class shlex:
self.lineno = self.lineno + 1
if self.debug >= 3:
print "shlex: in state", repr(self.state), \
- "I see character:", repr(nextchar)
+ "I see character:", repr(nextchar)
if self.state is None:
self.token = '' # past end of file
break
@@ -181,7 +181,7 @@ class shlex:
return "\"%s\", line %d: " % (infile, lineno)
-if __name__ == '__main__':
+if __name__ == '__main__':
if len(sys.argv) == 1:
lexer = shlex()
else: