summaryrefslogtreecommitdiff
path: root/Lib/shlex.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 +0000
commit582176023213a5bdaf76a19977f7bb6d508694e9 (patch)
treea5f480092a35a71571f1d24bcd10255e1b93e904 /Lib/shlex.py
parentcdef0ac4f0dc828ee205ffa2999592f5fa6f70d3 (diff)
downloadcpython-582176023213a5bdaf76a19977f7bb6d508694e9.tar.gz
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 ccf903898a..6632b87596 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