Skip to content

Commit 9340d32

Browse files
committed
Fix httptools.__all__
While looking at #52, I noticed that `httptools.__all__` is incorrect and doesn't actually include everything that is exported by the module, which might entice the users to import from the private submodule directly. Fixes: #52
1 parent 354297a commit 9340d32

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

httptools/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .parser import parser
1+
from . import parser
22
from .parser import * # NOQA
33

44
from ._version import __version__ # NOQA
55

6-
__all__ = parser.__all__ # NOQA
6+
__all__ = parser.__all__ + ('__version__',) # NOQA

httptools/parser/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from .parser import *
2-
from .errors import *
1+
from .parser import * # NoQA
2+
from .errors import * # NoQA
33

4-
5-
__all__ = parser.__all__ + errors.__all__
4+
__all__ = parser.__all__ + errors.__all__ # NoQA

0 commit comments

Comments
 (0)