From cd6243079c56ec8fcd715dce2ad1f0a226688e5f Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 19 Nov 2021 17:08:40 +0100 Subject: [PATCH 1/2] Fix mode-line. --- src/pEp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pEp/__init__.py b/src/pEp/__init__.py index 02c0b05..fb51859 100755 --- a/src/pEp/__init__.py +++ b/src/pEp/__init__.py @@ -1,4 +1,4 @@ -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- # pEp package # # The names that are in _pEp that do not begin with an underscore, will be be imported into, and "re-exported" from this module. From d2899c9f7f4755655195ae399feeb309bc28fa07 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 19 Nov 2021 17:12:09 +0100 Subject: [PATCH 2/2] Fix import statement. When importing pEp failed, and the program tries to import pEp again, "NameError: name '_pEp' is not defined" was raised. This was caused by "_pEp" not really been imported. --- src/pEp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pEp/__init__.py b/src/pEp/__init__.py index fb51859..b35067f 100755 --- a/src/pEp/__init__.py +++ b/src/pEp/__init__.py @@ -30,7 +30,7 @@ from ._pEp import * # import the native module into the current namespace because we also need to access the names beginning # with an underscore (of _pEp), but we dont want to import them into this module -import pEp._pEp +from . import _pEp # 3rd party imports from threading import Thread, Barrier