We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__version__
1 parent 1c7bbd8 commit 5c557adCopy full SHA for 5c557ad
1 file changed
tabulate/__init__.py
@@ -8,7 +8,10 @@
8
try:
9
__version__ = _version("tabulate")
10
except _PackageNotFoundError:
11
- __version__ = "unknown"
+ try:
12
+ from .version import version as __version__ # noqa: F401
13
+ except ImportError:
14
+ __version__ = "unknown"
15
16
import warnings
17
from collections import namedtuple
@@ -35,11 +38,6 @@ def _is_file(f):
35
38
36
39
37
40
__all__ = ["tabulate", "tabulate_formats", "simple_separated_format"]
-try:
- from .version import version as __version__ # noqa: F401
-except ImportError:
41
- pass # running __init__.py as a script, AppVeyor pytests
42
-
43
44
# minimum extra space in headers
45
MIN_PADDING = 2
0 commit comments