Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c988a commit bca45edCopy full SHA for bca45ed
1 file changed
Lib/_pydecimal.py
@@ -144,6 +144,7 @@
144
'HAVE_THREADS'
145
]
146
147
+__xname__ = __name__ # sys.modules lookup (--without-threads)
148
__name__ = 'decimal' # For pickling
149
__version__ = '1.70' # Highest version of the spec this complies with
150
# See http://speleotrove.com/decimal/
@@ -441,7 +442,7 @@ class FloatOperation(DecimalException, TypeError):
441
442
# Python was compiled without threads; create a mock object instead
443
class MockThreading(object):
444
def local(self, sys=sys):
- return sys.modules[__name__]
445
+ return sys.modules[__xname__]
446
threading = MockThreading()
447
del MockThreading
448
0 commit comments