git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57697e0
)
No need to backslash the char '@'
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 12 Feb 2008 16:24:10 +0000
(16:24 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 12 Feb 2008 16:24:10 +0000
(16:24 +0000)
system/TestPlc.py
patch
|
blob
|
history
diff --git
a/system/TestPlc.py
b/system/TestPlc.py
index
97e9215
..
73bfae9
100644
(file)
--- a/
system/TestPlc.py
+++ b/
system/TestPlc.py
@@
-16,11
+16,11
@@
from TestKey import TestKey
from TestSlice import TestSlice
# inserts a backslash before each occurence of the following chars
-# \ " ' < > & | ; ( ) $ * ~
@
+# \ " ' < > & | ; ( ) $ * ~
def backslash_shell_specials (command):
result=''
for char in command:
- if char in "\\\"'<>&|;()$*~
@
":
+ if char in "\\\"'<>&|;()$*~":
result +='\\'+char
else:
result +=char