]> granicus.if.org Git - python/commitdiff
Repair repr of future-features (wasn't updated to include the new
authorTim Peters <tim.peters@gmail.com>
Fri, 24 Aug 2001 17:13:54 +0000 (17:13 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 24 Aug 2001 17:13:54 +0000 (17:13 +0000)
compiler-flag argument).

Lib/__future__.py

index 32cdbc126568cb29135b74550e938fcaf8856b01..8940a95aeee36f4e8be9e8be2ca92511795c78b3 100644 (file)
@@ -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),