summaryrefslogtreecommitdiffstats
path: root/Lib/__future__.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-24 17:13:54 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-08-24 17:13:54 (GMT)
commit16c018d2d24e7b3366edda53baf85fa3a4a21f1e (patch)
treea9ac0e20fb2e5c8f3e929922c627e08eecf9b088 /Lib/__future__.py
parent9881fc124e34b92d0cc3ad50aee4fbce6c9a10b4 (diff)
downloadcpython-16c018d2d24e7b3366edda53baf85fa3a4a21f1e.zip
cpython-16c018d2d24e7b3366edda53baf85fa3a4a21f1e.tar.gz
cpython-16c018d2d24e7b3366edda53baf85fa3a4a21f1e.tar.bz2
Repair repr of future-features (wasn't updated to include the new
compiler-flag argument).
Diffstat (limited to 'Lib/__future__.py')
-rw-r--r--Lib/__future__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/__future__.py b/Lib/__future__.py
index 32cdbc1..8940a95 100644
--- a/Lib/__future__.py
+++ b/Lib/__future__.py
@@ -87,8 +87,9 @@ class _Feature:
return self.mandatory
def __repr__(self):
- return "_Feature(" + `self.getOptionalRelease()` + ", " + \
- `self.getMandatoryRelease()` + ")"
+ return "_Feature" + repr((self.optional,
+ self.mandatory,
+ self.compiler_flag))
nested_scopes = _Feature((2, 1, 0, "beta", 1),
(2, 2, 0, "alpha", 0),