[Python-checkins] CVS: python/dist/src/Lib __future__.py,1.12,1.13
Tim Peters
tim_one@users.sourceforge.net
Fri, 24 Aug 2001 10:13:57 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv27956/python/Lib
Modified Files:
__future__.py
Log Message:
Repair repr of future-features (wasn't updated to include the new
compiler-flag argument).
Index: __future__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/__future__.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** __future__.py 2001/08/24 06:29:12 1.12
--- __future__.py 2001/08/24 17:13:54 1.13
***************
*** 88,93 ****
def __repr__(self):
! return "_Feature(" + `self.getOptionalRelease()` + ", " + \
! `self.getMandatoryRelease()` + ")"
nested_scopes = _Feature((2, 1, 0, "beta", 1),
--- 88,94 ----
def __repr__(self):
! return "_Feature" + repr((self.optional,
! self.mandatory,
! self.compiler_flag))
nested_scopes = _Feature((2, 1, 0, "beta", 1),