From cadd8e683461d2397c11e838649e3b87d42c3972 Mon Sep 17 00:00:00 2001 From: Daniel Troeder Date: Sat, 23 Mar 2019 07:27:34 +0100 Subject: [PATCH] fix Python 2 import (fix #78) --- better_exceptions/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/better_exceptions/__main__.py b/better_exceptions/__main__.py index f17f0b2..a505388 100644 --- a/better_exceptions/__main__.py +++ b/better_exceptions/__main__.py @@ -16,7 +16,7 @@ except ImportError: def load_module(name, filepath): with open(filepath, 'r') as fd: - imp.load_module('a_b', f, path, ('.py', 'U', imp.PY_SOURCE)) + imp.load_module('a_b', fd, filepath, ('.py', 'U', imp.PY_SOURCE)) from better_exceptions import interact, hook hook()