Oh python, oh unicode.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user