[pywin32-checkins] pywin32/adodbapi adodbapi.py,1.11,1.12
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2010-05-31 00:25:53
|
Update of /cvsroot/pywin32/pywin32/adodbapi In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11253 Modified Files: adodbapi.py Log Message: Update syntax of raise statements Index: adodbapi.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/adodbapi/adodbapi.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** adodbapi.py 3 May 2010 08:41:06 -0000 1.11 --- adodbapi.py 31 May 2010 00:25:43 -0000 1.12 *************** *** 644,648 **** def _namedToQmark(self,op,parms): #convert from 'named' paramstyle to ADO required '?'mark parameters if type(parms) != type({}): ! raise (ProgrammingError), "paramstyle 'named' requires dict parameters" outOp = '' outparms=[] --- 644,648 ---- def _namedToQmark(self,op,parms): #convert from 'named' paramstyle to ADO required '?'mark parameters if type(parms) != type({}): ! raise ProgrammingError("paramstyle 'named' requires dict parameters") outOp = '' outparms=[] *************** *** 1101,1105 **** if isinstance(d,decimal.Decimal): return adc.adDecimal ! raise (DataError), 'cannot convert "%s" (type=%s) to ADO'%(repr(d),tp) class DBAPITypeObject(object): --- 1101,1105 ---- if isinstance(d,decimal.Decimal): return adc.adDecimal ! raise DataError('cannot convert "%s" (type=%s) to ADO'%(repr(d),tp)) class DBAPITypeObject(object): |