mirror of
https://github.com/python/cpython.git
synced 2025-10-12 01:43:12 +00:00
Repair repr of future-features (wasn't updated to include the new
compiler-flag argument).
This commit is contained in:
parent
9881fc124e
commit
16c018d2d2
1 changed files with 3 additions and 2 deletions
|
@ -87,8 +87,9 @@ class _Feature:
|
||||||
return self.mandatory
|
return self.mandatory
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "_Feature(" + `self.getOptionalRelease()` + ", " + \
|
return "_Feature" + repr((self.optional,
|
||||||
`self.getMandatoryRelease()` + ")"
|
self.mandatory,
|
||||||
|
self.compiler_flag))
|
||||||
|
|
||||||
nested_scopes = _Feature((2, 1, 0, "beta", 1),
|
nested_scopes = _Feature((2, 1, 0, "beta", 1),
|
||||||
(2, 2, 0, "alpha", 0),
|
(2, 2, 0, "alpha", 0),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue