From 74da87bec2164299b9fb2f5c2b9e4a174089d1f9 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 13 Nov 2018 09:59:36 -0800 Subject: [PATCH] change `__main__.py` to use relative imports This should fix `python -m wormhole` on py2. Closes #315. --- src/wormhole/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wormhole/__main__.py b/src/wormhole/__main__.py index 5104575..d6c1b97 100644 --- a/src/wormhole/__main__.py +++ b/src/wormhole/__main__.py @@ -1,4 +1,5 @@ -from wormhole.cli import cli +from __future__ import absolute_import, print_function, unicode_literals +from .cli import cli if __name__ != "__main__": raise ImportError('this module should not be imported')