Update of /cvsroot/pydns/pydns/DNS
In directory usw-pr-cvs1:/tmp/cvs-serv12662
Modified Files:
lazy.py
Log Message:
reformat, move import to top of file.
Index: lazy.py
===================================================================
RCS file: /cvsroot/pydns/pydns/DNS/lazy.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** lazy.py 19 Mar 2002 12:41:33 -0000 1.4
--- lazy.py 6 May 2002 06:14:38 -0000 1.5
***************
*** 9,16 ****
# routines for lazy people.
import Base
def revlookup(name):
"convenience routine for doing a reverse lookup of an address"
- import string
a = string.split(name, '.')
a.reverse()
--- 9,16 ----
# routines for lazy people.
import Base
+ import string
def revlookup(name):
"convenience routine for doing a reverse lookup of an address"
a = string.split(name, '.')
a.reverse()
***************
*** 24,28 ****
sorted list of (preference, mail exchanger) records
"""
-
a = Base.DnsRequest(name, qtype = 'mx').req().answers
l = map(lambda x:x['data'], a)
--- 24,27 ----
***************
*** 32,35 ****
--- 31,37 ----
#
# $Log$
+ # Revision 1.5 2002/05/06 06:14:38 anthonybaxter
+ # reformat, move import to top of file.
+ #
# Revision 1.4 2002/03/19 12:41:33 anthonybaxter
# tabnannied and reindented everything. 4 space indent, no tabs.
|