Update of /cvsroot/pydns/pydns/DNS
In directory usw-pr-cvs1:/tmp/cvs-serv12754
Modified Files:
win32dns.py
Log Message:
apparently some versions of windows return servers as unicode
string with space sep, rather than strings with comma sep.
*sigh*
Index: win32dns.py
===================================================================
RCS file: /cvsroot/pydns/pydns/DNS/win32dns.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** win32dns.py 19 Mar 2002 12:41:33 -0000 1.2
--- win32dns.py 6 May 2002 06:15:31 -0000 1.3
***************
*** 20,24 ****
"""
! import string
import _winreg
--- 20,24 ----
"""
! import string, re
import _winreg
***************
*** 38,43 ****
def stringdisplay(s):
! 'convert "d.d.d.d,d.d.d.d" to ["d.d.d.d","d.d.d.d"]'
! return string.split(s,",")
def RegistryResolve():
--- 38,46 ----
def stringdisplay(s):
! '''convert "d.d.d.d,d.d.d.d" to ["d.d.d.d","d.d.d.d"].
! also handle u'd.d.d.d d.d.d.d', as reporting on SF
! '''
! import re
! return map(str, re.split("[ ,]",s))
def RegistryResolve():
***************
*** 111,114 ****
--- 114,122 ----
#
# $Log$
+ # Revision 1.3 2002/05/06 06:15:31 anthonybaxter
+ # apparently some versions of windows return servers as unicode
+ # string with space sep, rather than strings with comma sep.
+ # *sigh*
+ #
# Revision 1.2 2002/03/19 12:41:33 anthonybaxter
# tabnannied and reindented everything. 4 space indent, no tabs.
|