[pywin32-checkins] pywin32/com/win32com/servers dictionary.py, 1.5, 1.6
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-04 05:23:20
|
Update of /cvsroot/pywin32/pywin32/com/win32com/servers In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29578/com/win32com/servers Modified Files: dictionary.py Log Message: make string check py3k-friendly and same as interp.py Index: dictionary.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/servers/dictionary.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** dictionary.py 4 Dec 2008 03:18:32 -0000 1.5 --- dictionary.py 4 Dec 2008 05:23:15 -0000 1.6 *************** *** 74,82 **** key = args[0] ! if type(key) == unicode: ! pass ! elif type(key) == str: ! key = unicode(key) ! else: ### the nArgErr thing should be 0-based, not reversed... sigh raise COMException(desc="Key must be a string", scode=winerror.DISP_E_TYPEMISMATCH) --- 74,78 ---- key = args[0] ! if type(exp) not in [str, unicode]: ### the nArgErr thing should be 0-based, not reversed... sigh raise COMException(desc="Key must be a string", scode=winerror.DISP_E_TYPEMISMATCH) |