[pypy-commit] pypy decimal-libmpdec: Fix cross-pickling between _decimal and decimal.py
amauryfa
noreply at buildbot.pypy.org
Sun Oct 5 20:23:16 CEST 2014
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: decimal-libmpdec
Changeset: r73810:0bde01cb23ae
Date: 2014-10-01 19:08 +0200
http://bitbucket.org/pypy/pypy/changeset/0bde01cb23ae/
Log: Fix cross-pickling between _decimal and decimal.py
diff --git a/pypy/module/_decimal/interp_context.py b/pypy/module/_decimal/interp_context.py
--- a/pypy/module/_decimal/interp_context.py
+++ b/pypy/module/_decimal/interp_context.py
@@ -387,7 +387,7 @@
return interp2app(func_w)
W_Context.typedef = TypeDef(
- '_decimal.Context',
+ 'decimal.Context',
__new__ = interp2app(descr_new_context),
__init__ = interp2app(W_Context.descr_init),
# Attributes
diff --git a/pypy/module/_decimal/interp_decimal.py b/pypy/module/_decimal/interp_decimal.py
--- a/pypy/module/_decimal/interp_decimal.py
+++ b/pypy/module/_decimal/interp_decimal.py
@@ -1115,7 +1115,7 @@
exact=True)
W_Decimal.typedef = TypeDef(
- '_decimal.Decimal',
+ 'decimal.Decimal',
__new__ = interp2app(descr_new_decimal),
__str__ = interp2app(W_Decimal.descr_str),
__repr__ = interp2app(W_Decimal.descr_repr),
More information about the pypy-commit
mailing list