Skip to content

Commit a50c130

Browse files
committed
ipwhois 0.13.0; typo fix
1 parent b5da67b commit a50c130

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ Web-based whois gateway written in Python for lighttpd
1515

1616
## License
1717

18-
See [License](https://github.com/whym/whois-gateway/blob/master/LICENSE.md).
18+
See [LICENSE.md](https://github.com/whym/whois-gateway/blob/master/LICENSE.md).

gateway_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_arin(self):
1616
@mock.patch('gateway.IPWhois')
1717
def test_lookup(self, MockClass):
1818
instance = MockClass.return_value
19-
instance.lookup.return_value = {'I am': 'nowhere', 'raw': 'foobar'}
19+
instance.lookup_whois.return_value = {'I am': 'nowhere', 'raw': 'foobar'}
2020
self.assertIn('nowhere', str(gateway.lookup('8.8.8.8')).lower())
2121
self.assertNotIn('foobar', str(gateway.lookup('8.8.8.8')).lower())
2222

public_html/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def lookup(ip, rdap=False):
5050
# TODO: RDAP output includes less relevant info, needs a dedicated formatter
5151
return obj.lookup_rdap()
5252
else:
53-
ret = obj.lookup()
53+
ret = obj.lookup_whois()
5454
# remove some fields that clutter
5555
for x in ['raw', 'raw_referral', 'referral']:
5656
ret.pop(x, None)

public_html/toolinfo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name" : "whois-gateway",
33
"title" : "Whois Gateway",
4-
"description" : "Ddisplay region information and other details associated with a given IP address.",
4+
"description" : "Display region information and other details associated with a given IP address.",
55
"url" : "http://tools.wmflabs.org/whois",
6-
"keywords" : "tools, whois, ip, ipv4, ipv6",
6+
"keywords" : "tools, whois, ip, ipaddress, ipv4, ipv6",
77
"author" : "Whym",
88
"repository" : "https://github.com/whym/whois-gateway.git"
99
}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ipwhois==0.11.0
1+
ipwhois==0.13.0
22
six
33
nose

0 commit comments

Comments
 (0)