[pywin32-checkins] pywin32/Pythonwin/pywin/Demos/ocx ocxserialtest.py, 1.1.4.1, 1.1.4.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-23 05:22:05
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/ocx In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26106/Pythonwin/pywin/Demos/ocx Modified Files: Tag: py3k ocxserialtest.py Log Message: Move to exception attributes. Index: ocxserialtest.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/ocx/ocxserialtest.py,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -C2 -d -r1.1.4.1 -r1.1.4.2 *** ocxserialtest.py 29 Aug 2008 06:16:06 -0000 1.1.4.1 --- ocxserialtest.py 23 Oct 2008 05:21:54 -0000 1.1.4.2 *************** *** 80,84 **** self.olectl.PortOpen = 1 except pythoncom.com_error as 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 as details: ! print("Could not open the specified serial port - %s" % (details.excepinfo[2])) self.EndDialog(win32con.IDCANCEL) return rc *************** *** 89,93 **** self.olectl.PortOpen = 0 except pythoncom.com_error as details: ! print("Error closing port - %s" % (details[2][2])) return dialog.Dialog.OnDestroy(self, msg) --- 89,93 ---- self.olectl.PortOpen = 0 except pythoncom.com_error as details: ! print("Error closing port - %s" % (details.excepinfo[2])) return dialog.Dialog.OnDestroy(self, msg) |