[pywin32-checkins] pywin32/Pythonwin/pywin/Demos/ocx ocxserialtest.py, 1.2, 1.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-23 05:22:50
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/ocx In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26136/Pythonwin/pywin/Demos/ocx Modified Files: ocxserialtest.py Log Message: Move to exception attributes, replace apply() with *args call. Index: ocxserialtest.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/ocx/ocxserialtest.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ocxserialtest.py 1 Oct 2008 14:13:02 -0000 1.2 --- ocxserialtest.py 23 Oct 2008 05:22:38 -0000 1.3 *************** *** 48,52 **** class TestSerDialog(dialog.Dialog): def __init__(self, *args): ! apply( dialog.Dialog.__init__, (self,)+args ) self.olectl = None def OnComm(self): --- 48,52 ---- class TestSerDialog(dialog.Dialog): def __init__(self, *args): ! dialog.Dialog.__init__(*(self,)+args) self.olectl = None def OnComm(self): *************** *** 80,84 **** self.olectl.PortOpen = 1 except pythoncom.com_error, details: ! print "Could not open the specified serial port - %s" % (details[2][2]) self.EndDialog(win32con.IDCANCEL) return rc --- 80,84 ---- self.olectl.PortOpen = 1 except pythoncom.com_error, details: ! print "Could not open the specified serial port - %s" % (details.excepinfo[2]) self.EndDialog(win32con.IDCANCEL) return rc |