git://blacka.com
/
python-rwhoisd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
832a654
)
add a has_attr() method to rwhoisobject
author
davidb
<davidb>
Tue, 22 Apr 2003 23:18:40 +0000
(23:18 +0000)
committer
davidb
<davidb>
Tue, 22 Apr 2003 23:18:40 +0000
(23:18 +0000)
rwhoisd/Rwhois.py
patch
|
blob
|
history
diff --git
a/rwhoisd/Rwhois.py
b/rwhoisd/Rwhois.py
index
54c37d1
..
551ff90
100644
(file)
--- a/
rwhoisd/Rwhois.py
+++ b/
rwhoisd/Rwhois.py
@@
-83,6
+83,9
@@
class rwhoisobject:
returned."""
return self.data.get(attr.strip().lower(), [default])[0]
+
+ def has_attr(self, attr):
+ return self.data.has_key(attr.strip().lower())
def getid(self):
"""Return the RWhois ID of this object."""