From bdf6b910f9ea75609caee498a975af03b6d23f67 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 19 Mar 2017 08:40:32 +0200 Subject: bpo-29776: Use decorator syntax for properties. (#585) --- Lib/_pydecimal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/_pydecimal.py') diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py index 0fa152c2a6..edabf72aa7 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 -- cgit v1.2.1