[pywin32-checkins] pywin32/win32/scripts/VersionStamp bulkstamp.py, 1.7, 1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-27 09:42:48
|
Update of /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18926/win32/scripts/VersionStamp Modified Files: bulkstamp.py Log Message: modernizations: replace most remaining has_key() calls with 'in' statements. Index: bulkstamp.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp/bulkstamp.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** bulkstamp.py 27 Nov 2008 05:58:17 -0000 1.7 --- bulkstamp.py 27 Nov 2008 09:42:42 -0000 1.8 *************** *** 60,64 **** name = base[:-2] + ext is_dll = ext.lower() != ".exe" ! if descriptions.has_key(os.path.normcase(name)): desc = descriptions[os.path.normcase(name)] try: --- 60,64 ---- name = base[:-2] + ext is_dll = ext.lower() != ".exe" ! if os.path.normcase(name) in descriptions: desc = descriptions[os.path.normcase(name)] try: *************** *** 96,106 **** descriptions[key] = val ! if not retvars.has_key('product'): print 'ERROR: description file is missing the product name.' sys.exit(1) ! if not retvars.has_key('major'): print 'ERROR: description file is missing the major version number.' sys.exit(1) ! if not retvars.has_key('minor'): print 'ERROR: description file is missing the minor version number.' sys.exit(1) --- 96,106 ---- descriptions[key] = val ! if 'product' not in retvars: print 'ERROR: description file is missing the product name.' sys.exit(1) ! if 'major' not in retvars: print 'ERROR: description file is missing the major version number.' sys.exit(1) ! if 'minor' not in retvars: print 'ERROR: description file is missing the minor version number.' sys.exit(1) |