[pywin32-checkins] pywin32/com/win32com/client build.py,1.35,1.36
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-04 13:43:21
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25552/com/win32com/client Modified Files: build.py Log Message: handle True and False being keywords in py3k Index: build.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/build.py,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** build.py 4 Dec 2008 03:18:32 -0000 1.35 --- build.py 4 Jan 2009 13:43:16 -0000 1.36 *************** *** 522,530 **** return demunge_leading_underscores(className) elif className == 'None': ! # assign to None is evil (and SyntaxError in 2.4) - note ! # that if it was a global it would get picked up below className = 'NONE' ! elif iskeyword(className): # all keywords are lower case ! return className.capitalize() elif is_global and hasattr(__builtins__, className): # builtins may be mixed case. If capitalizing it doesn't change it, --- 522,536 ---- return demunge_leading_underscores(className) elif className == 'None': ! # assign to None is evil (and SyntaxError in 2.4, even though ! # iskeyword says False there) - note that if it was a global ! # it would get picked up below className = 'NONE' ! elif iskeyword(className): ! # most keywords are lower case (except True, False etc in py3k) ! ret = className.capitalize() ! # but those which aren't get forced upper. ! if ret == className: ! ret = ret.upper() ! return ret elif is_global and hasattr(__builtins__, className): # builtins may be mixed case. If capitalizing it doesn't change it, |