Oh python, oh unicode.

This commit is contained in:
Simon Forman
2018-07-22 11:51:47 -07:00
parent 4ed8422258
commit 79a653c08b
+1
View File
@@ -297,6 +297,7 @@ class TextViewerWidget(tk.Text, MouseBindingsMixin, SavingMixin):
def run_command(self, command): def run_command(self, command):
'''Given a string run it on the stack, report errors.''' '''Given a string run it on the stack, report errors.'''
command = command.encode('utf_8')
try: try:
self.world.interpret(command) self.world.interpret(command)
except SystemExit: except SystemExit: