summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-09-19 10:36:50 -0400
committerGitHub <noreply@github.com>2018-09-19 10:36:50 -0400
commitb1a6dd3bdb27590aec4612ba4bd58eb416a60d07 (patch)
tree7d41c99476227dff3c06c525671c8ecbf84dc4f1 /cmd2/cmd2.py
parent36d9ec82c50b037becc204f9fc05d94c4d391ccf (diff)
parent9f3aa8955b9cb20ec48990227315276a34e7da32 (diff)
downloadcmd2-git-b1a6dd3bdb27590aec4612ba4bd58eb416a60d07.tar.gz
Merge pull request #517 from python-cmd2/fix_minor_warnings
Fix a couple minor lint warnings
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 888d9531..68e0aef2 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3031,7 +3031,7 @@ a..b, a:b, a:, ..b items by indices (inclusive)
# get the output out of the buffer
output = membuf.read()
# and add the regex-escaped output to the transcript
- transcript += output.replace('/', '\/')
+ transcript += output.replace('/', r'\/')
# Restore stdout to its original state
self.stdout = saved_self_stdout