[pywin32-checkins] pywin32/com/win32comext/adsi/demos scp.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 07:05:00
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/adsi/demos In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2952/com/win32comext/adsi/demos Modified Files: scp.py Log Message: correct assertion our param isn't a string Index: scp.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/adsi/demos/scp.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** scp.py 31 May 2005 12:44:34 -0000 1.3 --- scp.py 4 Dec 2008 07:04:56 -0000 1.4 *************** *** 43,47 **** import optparse, textwrap import traceback - import types verbose = 1 --- 43,46 ---- *************** *** 198,202 **** operation, # Add, replace, or delete SPNs ): ! assert spns not in types.StringTypes and hasattr(spns, "__iter__"), \ "spns must be a sequence of strings (got %r)" % spns # Bind to a domain controller. --- 197,201 ---- operation, # Add, replace, or delete SPNs ): ! assert type(spns) not in [str, unicode] and hasattr(spns, "__iter__"), \ "spns must be a sequence of strings (got %r)" % spns # Bind to a domain controller. |