summaryrefslogtreecommitdiffstats
path: root/Lib/decimal.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index f8c548e..530bdfb 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -103,6 +103,7 @@ try:
from _decimal import __version__ # noqa: F401
from _decimal import __libmpdec_version__ # noqa: F401
except ImportError:
- from _pydecimal import *
- from _pydecimal import __version__ # noqa: F401
- from _pydecimal import __libmpdec_version__ # noqa: F401
+ import _pydecimal
+ import sys
+ _pydecimal.__doc__ = __doc__
+ sys.modules[__name__] = _pydecimal