This was the last relative import in the project. It had been left in
for before the transition away from Python 2 so as to not break the
functionality. However, this was the wrong way to do it in Python 2 and
we've moved on to Python 3 only already anyway.
Fixes a potential override of the Hawkmoth internals by an unsuspecting
user, however unlikely it might have been.
---
hawkmoth/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hawkmoth/__init__.py b/hawkmoth/__init__.py
index c55a421..0667a30 100644
--- a/hawkmoth/__init__.py
+++ b/hawkmoth/__init__.py
@@ -24,7 +24,7 @@
from sphinx.util.docutils import switch_source_input
# The parser bits
-from . import hawkmoth
+from hawkmoth import hawkmoth
class CAutoDocDirective(Directive):
"""Extract all documentation comments from the specified file"""
--
2.20.1