[pywin32-checkins] pywin32/Pythonwin/pywin/debugger debugger.py, 1.25, 1.26
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2010-08-25 07:40:01
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27287 Modified Files: debugger.py Log Message: allow debugger to run unicode strings (kxroberto) Index: debugger.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger/debugger.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** debugger.py 9 May 2010 14:11:51 -0000 1.25 --- debugger.py 25 Aug 2010 07:39:53 -0000 1.26 *************** *** 630,634 **** def run(self, cmd,globals=None, locals=None, start_stepping = 1): ! if type(cmd) not in [types.StringType, types.CodeType]: raise TypeError("Only strings can be run") self.last_cmd_debugged = cmd --- 630,634 ---- def run(self, cmd,globals=None, locals=None, start_stepping = 1): ! if not isinstance(cmd, (basestring, types.CodeType)): raise TypeError("Only strings can be run") self.last_cmd_debugged = cmd |