Commit 2e0b6ae7 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Fix __import__ call for Python 3.

parent cd7fc25d
...@@ -76,7 +76,7 @@ def get_subcommand(p_args): ...@@ -76,7 +76,7 @@ def get_subcommand(p_args):
classname = _SUBCOMMAND_MAP[p_subcommand] classname = _SUBCOMMAND_MAP[p_subcommand]
modulename = 'topydo.commands.{}'.format(classname) modulename = 'topydo.commands.{}'.format(classname)
__import__(modulename, globals(), locals(), [classname], -1) __import__(modulename, globals(), locals(), [classname], 0)
return getattr(sys.modules[modulename], classname) return getattr(sys.modules[modulename], classname)
result = None result = None
......
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