Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16c018d

Browse files
committed
Repair repr of future-features (wasn't updated to include the new
compiler-flag argument).
1 parent 9881fc1 commit 16c018d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/__future__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ def getMandatoryRelease(self):
8787
return self.mandatory
8888

8989
def __repr__(self):
90-
return "_Feature(" + `self.getOptionalRelease()` + ", " + \
91-
`self.getMandatoryRelease()` + ")"
90+
return "_Feature" + repr((self.optional,
91+
self.mandatory,
92+
self.compiler_flag))
9293

9394
nested_scopes = _Feature((2, 1, 0, "beta", 1),
9495
(2, 2, 0, "alpha", 0),

0 commit comments

Comments
 (0)