Fixed funkyArgument to allow bolding.

This commit is contained in:
Jeremy Fincher 2003-03-27 11:03:52 +00:00
parent bc93b2953a
commit 15e26578fb

View File

@ -156,9 +156,10 @@ def bold(s):
def validArgument(s):
return '\r' not in s and '\n' not in s and '\x00' not in s
nonFunkyArguments = string.printable+'\x02'
def funkyArgument(s):
if validArgument(s):
if s.translate(string.ascii, string.printable) == '':
if s.translate(string.ascii, nonFunkyArguments) == '':
# All characters must be printable.
return False
else: