[pywin32-checkins] pywin32/com/win32comext/adsi __init__.py, 1.3, 1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-04 03:18:37
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/adsi In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22614/win32comext/adsi Modified Files: __init__.py Log Message: remove all support for NeedUnicodeConversions in a b/w compat way Index: __init__.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/adsi/__init__.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** __init__.py 26 Nov 2008 08:52:32 -0000 1.3 --- __init__.py 4 Dec 2008 03:18:32 -0000 1.4 *************** *** 67,75 **** class ADSIDispatch(win32com.client.CDispatch): ! def _wrap_dispatch_(self, ob, userName = None, returnCLSID = None, UnicodeToString = win32com.client.NeedUnicodeConversions): if not userName: userName = "ADSI-object" olerepr = win32com.client.dynamic.MakeOleRepr(ob, None, None) ! return ADSIDispatch(ob, olerepr, userName, UnicodeToString = UnicodeToString) def _NewEnum(self): --- 67,76 ---- class ADSIDispatch(win32com.client.CDispatch): ! def _wrap_dispatch_(self, ob, userName = None, returnCLSID = None, UnicodeToString=None): ! assert UnicodeToString is None, "this is deprectated and will be removed" if not userName: userName = "ADSI-object" olerepr = win32com.client.dynamic.MakeOleRepr(ob, None, None) ! return ADSIDispatch(ob, olerepr, userName) def _NewEnum(self): |