Skip to content

Commit ba112f1

Browse files
authored
Merge pull request #73 from maxmind/greg/run-yapf
Run recent YAPF version against code
2 parents 2840e5e + a03a0fe commit ba112f1

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

geoip2/database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class Reader(object):
3939
be thrown.
4040
4141
"""
42-
4342
def __init__(self, fileish, locales=None, mode=MODE_AUTO):
4443
"""Create GeoIP2 Reader.
4544

geoip2/errors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class HTTPError(GeoIP2Error):
3232
:ivar uri: The URI queried
3333
3434
"""
35-
3635
def __init__(self, message, http_status=None, uri=None):
3736
super(HTTPError, self).__init__(message)
3837
self.http_status = http_status

geoip2/models.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class Country(SimpleEquality):
6464
:type: :py:class:`geoip2.records.Traits`
6565
6666
"""
67-
6867
def __init__(self, raw_response, locales=None):
6968
if locales is None:
7069
locales = ['en']
@@ -160,7 +159,6 @@ class City(Country):
160159
:type: :py:class:`geoip2.records.Traits`
161160
162161
"""
163-
164162
def __init__(self, raw_response, locales=None):
165163
super(City, self).__init__(raw_response, locales)
166164
self.city = \
@@ -362,7 +360,6 @@ class AnonymousIP(SimpleModel):
362360
363361
:type: unicode
364362
"""
365-
366363
def __init__(self, raw):
367364
self.is_anonymous = raw.get('is_anonymous', False)
368365
self.is_anonymous_vpn = raw.get('is_anonymous_vpn', False)
@@ -432,7 +429,6 @@ class ConnectionType(SimpleModel):
432429
433430
:type: unicode
434431
"""
435-
436432
def __init__(self, raw):
437433
self.connection_type = raw.get('connection_type')
438434
self.ip_address = raw.get('ip_address')
@@ -457,7 +453,6 @@ class Domain(SimpleModel):
457453
:type: unicode
458454
459455
"""
460-
461456
def __init__(self, raw):
462457
self.domain = raw.get('domain')
463458
self.ip_address = raw.get('ip_address')

geoip2/records.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ class Subdivisions(tuple):
451451
452452
This attribute is returned by ``city``, ``enterprise``, and ``insights``.
453453
"""
454-
455454
def __new__(cls, locales, *subdivisions):
456455
subdivisions = [Subdivision(locales, **x) for x in subdivisions]
457456
obj = super(cls, Subdivisions).__new__(cls, subdivisions)

geoip2/webservice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ class Client(object):
8181
* zh-CN -- Simplified Chinese.
8282
8383
"""
84-
8584
def __init__(
8685
self,
8786
account_id=None,

0 commit comments

Comments
 (0)