summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binop.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-06 21:56:42 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-06 21:56:42 (GMT)
commit8bce4acb17ee7146c5736ad020ea0e129bd7f67b (patch)
tree6bc493ecb49a8920dbaa7904e773b9756061d8a6 /Lib/test/test_binop.py
parent2872e8a654dbabaadbdeb513a962b0a23533dfe3 (diff)
downloadcpython-8bce4acb17ee7146c5736ad020ea0e129bd7f67b.zip
cpython-8bce4acb17ee7146c5736ad020ea0e129bd7f67b.tar.gz
cpython-8bce4acb17ee7146c5736ad020ea0e129bd7f67b.tar.bz2
Rename 'getset' to 'property'.
Diffstat (limited to 'Lib/test/test_binop.py')
-rw-r--r--Lib/test/test_binop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_binop.py b/Lib/test/test_binop.py
index 7eded9a..c64e3a8 100644
--- a/Lib/test/test_binop.py
+++ b/Lib/test/test_binop.py
@@ -48,12 +48,12 @@ class Rat(object):
def _get_num(self):
"""Accessor function for read-only 'num' attribute of Rat."""
return self.__num
- num = getset(_get_num, None)
+ num = property(_get_num, None)
def _get_den(self):
"""Accessor function for read-only 'den' attribute of Rat."""
return self.__den
- den = getset(_get_den, None)
+ den = property(_get_den, None)
def __repr__(self):
"""Convert a Rat to an string resembling a Rat constructor call."""