@@ -49,7 +49,9 @@ async def getDetails(self, ip_address=None):
4949 # If the supplied IP address uses the objects defined in the built-in
5050 # module ipaddress, extract the appropriate string notation before
5151 # formatting the URL.
52- if isinstance (ip_address , IPv4Address ) or isinstance (ip_address , IPv6Address ):
52+ if isinstance (ip_address , IPv4Address ) or isinstance (
53+ ip_address , IPv6Address
54+ ):
5355 ip_address = ip_address .exploded
5456
5557 if ip_address in self .cache :
@@ -81,7 +83,9 @@ async def getBatchDetails(self, ip_addresses):
8183 # If the supplied IP address uses the objects defined in the
8284 # built-in module ipaddress extract the appropriate string notation
8385 # before formatting the URL.
84- if isinstance (ip_address , IPv4Address ) or isinstance (ip_address , IPv6Address ):
86+ if isinstance (ip_address , IPv4Address ) or isinstance (
87+ ip_address , IPv6Address
88+ ):
8589 ip_address = ip_address .exploded
8690
8791 if ip_address in self .cache :
@@ -144,7 +148,10 @@ def _read_coords(self, location):
144148 return lat , lon
145149
146150 def _read_country_names (self , countries_file = None ):
147- """Read list of countries from specified country file or default file."""
151+ """
152+ Read list of countries from specified country file or
153+ default file.
154+ """
148155 if not countries_file :
149156 countries_file = os .path .join (
150157 os .path .dirname (__file__ ), self .COUNTRY_FILE_DEFAULT
0 commit comments