diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-19 06:40:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 06:40:32 (GMT) |
commit | bdf6b910f9ea75609caee498a975af03b6d23f67 (patch) | |
tree | ac69902aaaeb9c2e0578181e911a36af201ea1a0 /Lib/multiprocessing/connection.py | |
parent | c85a26628ceb9624c96c3064e8b99033c026d8a3 (diff) | |
download | cpython-bdf6b910f9ea75609caee498a975af03b6d23f67.zip cpython-bdf6b910f9ea75609caee498a975af03b6d23f67.tar.gz cpython-bdf6b910f9ea75609caee498a975af03b6d23f67.tar.bz2 |
bpo-29776: Use decorator syntax for properties. (#585)
Diffstat (limited to 'Lib/multiprocessing/connection.py')
-rw-r--r-- | Lib/multiprocessing/connection.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py index d49e8f0..ba9b17c 100644 --- a/Lib/multiprocessing/connection.py +++ b/Lib/multiprocessing/connection.py @@ -465,8 +465,13 @@ class Listener(object): self._listener = None listener.close() - address = property(lambda self: self._listener._address) - last_accepted = property(lambda self: self._listener._last_accepted) + @property + def address(self): + return self._listener._address + + @property + def last_accepted(self): + return self._listener._last_accepted def __enter__(self): return self |