Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Exscript/emulators/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"""
Defines the behavior of commands by mapping commands to functions.
"""
from past.builtins import execfile
from builtins import str
from builtins import object
import re
Expand Down Expand Up @@ -84,7 +83,7 @@ def add_from_file(self, filename, handler_decorator=None):
each of the handlers in the file.
"""
args = {}
execfile(filename, args)
exec(filename, args)
commands = args.get('commands')
if commands is None:
raise Exception(filename + ' has no variable named "commands"')
Expand Down