Commit b7073a9e authored by rdubner's avatar rdubner

Handle unicode-to-string conversion in Python2

parent 5a71f913
......@@ -79,6 +79,10 @@ def DeSpace(command) :
elif isinstance(command,str) :
# Starting as string, return a list
return command.split()
elif isinstance(command,unicode) :
# This will come into play with Python2
command = command.encode('ascii','replace')
return command.split()
# On his head be it
return command
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment