Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16237
Modified Files:
build.py genpy.py
Log Message:
avoid deprecated pythoncom.MakeTime
Index: genpy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** genpy.py 4 Dec 2008 07:03:39 -0000 1.63
--- genpy.py 9 Jan 2009 01:29:29 -0000 1.64
***************
*** 827,831 ****
print >> self.file, 'python_version = 0x%x' % (sys.hexversion,)
print >> self.file
! print >> self.file, 'import win32com.client.CLSIDToClass, pythoncom'
print >> self.file, 'import win32com.client.util'
print >> self.file, 'from pywintypes import IID'
--- 827,831 ----
print >> self.file, 'python_version = 0x%x' % (sys.hexversion,)
print >> self.file
! print >> self.file, 'import win32com.client.CLSIDToClass, pythoncom, pywintypes'
print >> self.file, 'import win32com.client.util'
print >> self.file, 'from pywintypes import IID'
Index: build.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/build.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** build.py 7 Jan 2009 04:10:24 -0000 1.37
--- build.py 9 Jan 2009 01:29:29 -0000 1.38
***************
*** 559,563 ****
if type(val) is TimeType:
year=val.year; month=val.month; day=val.day; hour=val.hour; minute=val.minute; second=val.second; msec=val.msec
! return "pythoncom.MakeTime((%(year)d, %(month)d, %(day)d, %(hour)d, %(minute)d, %(second)d,0,0,0,%(msec)d))" % locals()
else:
return repr(val)
--- 559,563 ----
if type(val) is TimeType:
year=val.year; month=val.month; day=val.day; hour=val.hour; minute=val.minute; second=val.second; msec=val.msec
! return "pywintypes.Time((%(year)d, %(month)d, %(day)d, %(hour)d, %(minute)d, %(second)d,0,0,0,%(msec)d))" % locals()
else:
return repr(val)
|