Skip to content

Commit 050244a

Browse files
committed
Minor doc cleanup
1 parent 9b5de69 commit 050244a

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

geoip2/database.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class Reader(object):
1717
Instances of this class provide a reader for the GeoIP2 database format.
1818
IP addresses can be looked up using the ``country`` and ``city`` methods.
1919
We also provide ``city_isp_org`` and ``omni`` methods to ease
20-
compatibility with the web service client, although we may offer the
21-
ability to specify additional databases to replicate these web services in
22-
the future (e.g., the ISP/Org database).
20+
compatibility with the web service client.
2321
2422
Usage
2523
-----
@@ -49,7 +47,7 @@ def __init__(self, filename, locales=None):
4947
self._locales = locales
5048

5149
def country(self, ip_address):
52-
"""Get the Country record object for the IP address
50+
"""Get the Country object for the IP address
5351
5452
:param ip_address: IPv4 or IPv6 address as a string.
5553
@@ -60,7 +58,7 @@ def country(self, ip_address):
6058
return self._model_for(geoip2.models.Country, ip_address)
6159

6260
def city(self, ip_address):
63-
"""Get the City record object for the IP address
61+
"""Get the City object for the IP address
6462
6563
:param ip_address: IPv4 or IPv6 address as a string.
6664
@@ -70,7 +68,7 @@ def city(self, ip_address):
7068
return self._model_for(geoip2.models.City, ip_address)
7169

7270
def city_isp_org(self, ip_address):
73-
"""Get the CityISPOrg record object for the IP address
71+
"""Get the CityISPOrg object for the IP address
7472
7573
:param ip_address: IPv4 or IPv6 address as a string. If no address
7674
is provided.
@@ -82,7 +80,7 @@ def city_isp_org(self, ip_address):
8280
return self._model_for(geoip2.models.CityISPOrg, ip_address)
8381

8482
def omni(self, ip_address):
85-
"""Get the Omni record object for the IP address
83+
"""Get the Omni object for the IP address
8684
8785
:param ip_address: IPv4 or IPv6 address as a string.
8886

geoip2/models.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class Country(object):
1818

19-
"""Model class for the GeoIP2 Country Web Service or Database
19+
"""Model class for the GeoIP2 Country
2020
2121
This class provides the following attributes:
2222
@@ -92,7 +92,7 @@ def __init__(self, raw_response, locales=None):
9292

9393
class City(Country):
9494

95-
"""Model class for the GeoIP2 Precision City Web Service or City Database
95+
"""Model class for the GeoIP2 Precision City
9696
9797
.. attribute:: city
9898
@@ -170,7 +170,7 @@ def __init__(self, raw_response, locales=None):
170170

171171
class CityISPOrg(City):
172172

173-
"""Model class for the GeoIP2 Precision City/ISP/Org end point
173+
"""Model class for the GeoIP2 Precision City/ISP/Org
174174
175175
.. attribute:: city
176176
@@ -236,7 +236,7 @@ class CityISPOrg(City):
236236

237237
class Omni(CityISPOrg):
238238

239-
"""Model class for the GeoIP2 Precision Omni end point
239+
"""Model class for the GeoIP2 Precision Omni
240240
241241
.. attribute:: city
242242
@@ -302,7 +302,7 @@ class Omni(CityISPOrg):
302302

303303
class ConnectionType(object):
304304

305-
"""Model class for the GeoIP2 Connection-Type Database
305+
"""Model class for the GeoIP2 Connection-Type
306306
307307
This class provides the following attribute:
308308
@@ -334,7 +334,7 @@ def __init__(self, raw):
334334

335335
class Domain(object):
336336

337-
"""Model class for the GeoIP2 Domain Database
337+
"""Model class for the GeoIP2 Domain
338338
339339
This class provides the following attribute:
340340
@@ -360,7 +360,7 @@ def __init__(self, raw):
360360

361361
class ISPOrg(object):
362362

363-
"""Model class for the GeoIP2 ISP-Org Database
363+
"""Model class for the GeoIP2 ISP-Org
364364
365365
This class provides the following attribute:
366366

0 commit comments

Comments
 (0)