[Python-checkins] CVS: python/dist/src/Lib __future__.py,1.12,1.13

Tim Peters tim_one@users.sourceforge.net
2001年8月24日 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),

AltStyle によって変換されたページ (->オリジナル) /