summaryrefslogtreecommitdiffstats
path: root/Lib/shlex.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 (GMT)
commit70a6b49821a3226f55e9716f32d802d06640cb89 (patch)
tree3c8ca10c1fa09e025bd266cf855a00d7d96c55aa /Lib/shlex.py
parentecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e (diff)
downloadcpython-70a6b49821a3226f55e9716f32d802d06640cb89.zip
cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.gz
cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.bz2
Replace backticks with repr() or "%r"
From SF patch #852334.
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 ccf9038..6632b87 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -59,7 +59,7 @@ class shlex:
def push_token(self, tok):
"Push a token onto the stack popped by the get_token method"
if self.debug >= 1:
- print "shlex: pushing token " + `tok`
+ print "shlex: pushing token " + repr(tok)
self.pushback.appendleft(tok)
def push_source(self, newstream, newfile=None):
@@ -90,7 +90,7 @@ class shlex:
if self.pushback:
tok = self.pushback.popleft()
if self.debug >= 1:
- print "shlex: popping token " + `tok`
+ print "shlex: popping token " + repr(tok)
return tok
# No pushback. Get a token.
raw = self.read_token()
@@ -112,7 +112,7 @@ class shlex:
# Neither inclusion nor EOF
if self.debug >= 1:
if raw != self.eof:
- print "shlex: token=" + `raw`
+ print "shlex: token=" + repr(raw)
else:
print "shlex: token=EOF"
return raw
@@ -240,7 +240,7 @@ class shlex:
result = None
if self.debug > 1:
if result:
- print "shlex: raw token=" + `result`
+ print "shlex: raw token=" + repr(result)
else:
print "shlex: raw token=EOF"
return result