Update of /cvsroot/pywin32/pywin32/com/win32com/servers
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22441/win32com/servers
Modified Files:
interp.py
Log Message:
remove use of pywintypes.UnicodeType
Index: interp.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/servers/interp.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** interp.py 18 Dec 2002 04:20:58 -0000 1.2
--- interp.py 4 Dec 2008 03:13:25 -0000 1.3
***************
*** 13,17 ****
from win32com.server.exception import Exception
- from pywintypes import UnicodeType
import winerror
--- 13,16 ----
***************
*** 34,38 ****
"""Evaluate an expression.
"""
! if type(exp) not in [type(''),UnicodeType]:
raise Exception(desc="Must be a string",scode=winerror.DISP_E_TYPEMISMATCH)
--- 33,37 ----
"""Evaluate an expression.
"""
! if type(exp) not in [str, unicode]:
raise Exception(desc="Must be a string",scode=winerror.DISP_E_TYPEMISMATCH)
***************
*** 41,45 ****
"""Execute a statement.
"""
! if type(exp) not in [type(''), UnicodeType]:
raise Exception(desc="Must be a string",scode=winerror.DISP_E_TYPEMISMATCH)
exec str(exp) in self.dict
--- 40,44 ----
"""Execute a statement.
"""
! if type(exp) not in [str, unicode]:
raise Exception(desc="Must be a string",scode=winerror.DISP_E_TYPEMISMATCH)
exec str(exp) in self.dict
|