summaryrefslogtreecommitdiffstats
path: root/Lib/_pydecimal.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-19 06:40:32 (GMT)
committerGitHub <noreply@github.com>2017-03-19 06:40:32 (GMT)
commitbdf6b910f9ea75609caee498a975af03b6d23f67 (patch)
treeac69902aaaeb9c2e0578181e911a36af201ea1a0 /Lib/_pydecimal.py
parentc85a26628ceb9624c96c3064e8b99033c026d8a3 (diff)
downloadcpython-bdf6b910f9ea75609caee498a975af03b6d23f67.zip
cpython-bdf6b910f9ea75609caee498a975af03b6d23f67.tar.gz
cpython-bdf6b910f9ea75609caee498a975af03b6d23f67.tar.bz2
bpo-29776: Use decorator syntax for properties. (#585)
Diffstat (limited to 'Lib/_pydecimal.py')
-rw-r--r--Lib/_pydecimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py
index 0fa152c..edabf72 100644
--- a/Lib/_pydecimal.py
+++ b/Lib/_pydecimal.py
@@ -1674,13 +1674,13 @@ class Decimal(object):
__trunc__ = __int__
+ @property
def real(self):
return self
- real = property(real)
+ @property
def imag(self):
return Decimal(0)
- imag = property(imag)
def conjugate(self):
return self