@@ -41,7 +41,7 @@ class Reader(object):
4141"""
4242
4343 def __init__ (self , filename , locales = None , mode = MODE_AUTO ):
44- """Create GeoIP2 Reader
44+ """Create GeoIP2 Reader.
4545
4646 :param filename: The path to the GeoIP2 database.
4747 :param locales: This is list of locale codes. This argument will be
@@ -89,7 +89,7 @@ def __exit__(self, exc_type, exc_value, traceback):
8989 self .close ()
9090
9191 def country (self , ip_address ):
92- """Get the Country object for the IP address
92+ """Get the Country object for the IP address.
9393
9494 :param ip_address: IPv4 or IPv6 address as a string.
9595
@@ -100,7 +100,7 @@ def country(self, ip_address):
100100 return self ._model_for (geoip2 .models .Country , 'Country' , ip_address )
101101
102102 def city (self , ip_address ):
103- """Get the City object for the IP address
103+ """Get the City object for the IP address.
104104
105105 :param ip_address: IPv4 or IPv6 address as a string.
106106
@@ -110,7 +110,7 @@ def city(self, ip_address):
110110 return self ._model_for (geoip2 .models .City , 'City' , ip_address )
111111
112112 def anonymous_ip (self , ip_address ):
113- """Get the AnonymousIP object for the IP address
113+ """Get the AnonymousIP object for the IP address.
114114
115115 :param ip_address: IPv4 or IPv6 address as a string.
116116
@@ -121,7 +121,7 @@ def anonymous_ip(self, ip_address):
121121 'GeoIP2-Anonymous-IP' , ip_address )
122122
123123 def connection_type (self , ip_address ):
124- """Get the ConnectionType object for the IP address
124+ """Get the ConnectionType object for the IP address.
125125
126126 :param ip_address: IPv4 or IPv6 address as a string.
127127
@@ -132,7 +132,7 @@ def connection_type(self, ip_address):
132132 'GeoIP2-Connection-Type' , ip_address )
133133
134134 def domain (self , ip_address ):
135- """Get the Domain object for the IP address
135+ """Get the Domain object for the IP address.
136136
137137 :param ip_address: IPv4 or IPv6 address as a string.
138138
@@ -143,7 +143,7 @@ def domain(self, ip_address):
143143 ip_address )
144144
145145 def enterprise (self , ip_address ):
146- """Get the Enterprise object for the IP address
146+ """Get the Enterprise object for the IP address.
147147
148148 :param ip_address: IPv4 or IPv6 address as a string.
149149
@@ -154,7 +154,7 @@ def enterprise(self, ip_address):
154154 ip_address )
155155
156156 def isp (self , ip_address ):
157- """Get the ISP object for the IP address
157+ """Get the ISP object for the IP address.
158158
159159 :param ip_address: IPv4 or IPv6 address as a string.
160160
@@ -187,13 +187,13 @@ def _flat_model_for(self, model_class, types, ip_address):
187187 return model_class (record )
188188
189189 def metadata (self ):
190- """The metadata for the open database
190+ """The metadata for the open database.
191191
192192 :returns: :py:class:`maxminddb.reader.Metadata` object
193193 """
194194 return self ._db_reader .metadata ()
195195
196196 def close (self ):
197- """Closes the GeoIP2 database"""
197+ """Closes the GeoIP2 database. """
198198
199199 self ._db_reader .close ()
0 commit comments