summaryrefslogtreecommitdiffstats
path: root/Lib/shlex.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-22 15:28:08 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-22 15:28:08 (GMT)
commitf247d75507ec767df5ed38e9a2264acb123fe493 (patch)
tree6c1aef0a4a4e053c9bdfaf89f3c6abce1db9ce72 /Lib/shlex.py
parent13ae1c8ff81befcfd0b0ece98ef471cd504642d8 (diff)
downloadcpython-f247d75507ec767df5ed38e9a2264acb123fe493.zip
cpython-f247d75507ec767df5ed38e9a2264acb123fe493.tar.gz
cpython-f247d75507ec767df5ed38e9a2264acb123fe493.tar.bz2
Bug reported by Tobias Thelen: missing "self." in assignment target.
Diffstat (limited to 'Lib/shlex.py')
-rw-r--r--Lib/shlex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py
index 8b4ac7a..173edde 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -95,7 +95,7 @@ class shlex:
self.pushback = [nextchar] + self.pushback
if self.debug >= 2:
print "I see punctuation in word state"
- state = ' '
+ self.state = ' '
if self.token:
break # emit current token
else: