git://blacka.com
/
python-rwhoisd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a has_attr() method to rwhoisobject
[python-rwhoisd.git]
/
rwhoisd
/
Rwhois.py
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."""