Had safeArgument logic flipped

This commit is contained in:
Jeremy Fincher 2003-04-03 09:17:19 +00:00
parent e186cd043d
commit 689f44028a

View File

@ -162,7 +162,7 @@ def validArgument(s):
notFunky = string.printable+'\x02'
def safeArgument(s):
if validArgument(s) and s.translate(string.ascii, notFunky) == s:
if validArgument(s) and s.translate(string.ascii, notFunky) == '':
return s
else:
return repr(s)