[pywin32-checkins] pywin32/com/win32com/client genpy.py,1.64,1.65
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2009-01-14 04:55:47
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9592/com/win32com/client Modified Files: genpy.py Log Message: move our '0x80000000L' special handling for 2.3 into a py3k compt. syntax Index: genpy.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** genpy.py 9 Jan 2009 01:29:29 -0000 1.64 --- genpy.py 14 Jan 2009 04:55:42 -0000 1.65 *************** *** 205,211 **** val = vdesc[1] if sys.version_info <= (2,4) and (isinstance(val, int) or isinstance(val, long)): ! if val==0x80000000L: # special case use = "0x80000000L" # 'L' for future warning ! elif val > 0x80000000L or val < 0: # avoid a FutureWarning use = long(val) else: --- 205,212 ---- val = vdesc[1] if sys.version_info <= (2,4) and (isinstance(val, int) or isinstance(val, long)): ! # in python 2.3, 0x80000000L == 2147483648 ! if val==2147483648: # == 0x80000000L - special case for 2.3... use = "0x80000000L" # 'L' for future warning ! elif val > 2147483648 or val < 0: # avoid a FutureWarning use = long(val) else: |