summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/dummy/__init__.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/multiprocessing/dummy/__init__.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/multiprocessing/dummy/__init__.py')
-rw-r--r--Lib/multiprocessing/dummy/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/multiprocessing/dummy/__init__.py b/Lib/multiprocessing/dummy/__init__.py
index 1abea64..cbb7f49 100644
--- a/Lib/multiprocessing/dummy/__init__.py
+++ b/Lib/multiprocessing/dummy/__init__.py
@@ -98,11 +98,15 @@ class Value(object):
def __init__(self, typecode, value, lock=True):
self._typecode = typecode
self._value = value
- def _get(self):
+
+ @property
+ def value(self):
return self._value
- def _set(self, value):
+
+ @value.setter
+ def value(self, value):
self._value = value
- value = property(_get, _set)
+
def __repr__(self):
return '<%s(%r, %r)>'%(type(self).__name__,self._typecode,self._value)