diff --git a/geoip2/database.py b/geoip2/database.py index c9f9310f..9be9ecf1 100644 --- a/geoip2/database.py +++ b/geoip2/database.py @@ -39,7 +39,6 @@ class Reader(object): be thrown. """ - def __init__(self, fileish, locales=None, mode=MODE_AUTO): """Create GeoIP2 Reader. diff --git a/geoip2/errors.py b/geoip2/errors.py index 468b5858..c1a832ed 100644 --- a/geoip2/errors.py +++ b/geoip2/errors.py @@ -32,7 +32,6 @@ class HTTPError(GeoIP2Error): :ivar uri: The URI queried """ - def __init__(self, message, http_status=None, uri=None): super(HTTPError, self).__init__(message) self.http_status = http_status diff --git a/geoip2/models.py b/geoip2/models.py index 3c7e28ec..b6d5d2ce 100644 --- a/geoip2/models.py +++ b/geoip2/models.py @@ -64,7 +64,6 @@ class Country(SimpleEquality): :type: :py:class:`geoip2.records.Traits` """ - def __init__(self, raw_response, locales=None): if locales is None: locales = ['en'] @@ -160,7 +159,6 @@ class City(Country): :type: :py:class:`geoip2.records.Traits` """ - def __init__(self, raw_response, locales=None): super(City, self).__init__(raw_response, locales) self.city = \ @@ -362,7 +360,6 @@ class AnonymousIP(SimpleModel): :type: unicode """ - def __init__(self, raw): self.is_anonymous = raw.get('is_anonymous', False) self.is_anonymous_vpn = raw.get('is_anonymous_vpn', False) @@ -432,7 +429,6 @@ class ConnectionType(SimpleModel): :type: unicode """ - def __init__(self, raw): self.connection_type = raw.get('connection_type') self.ip_address = raw.get('ip_address') @@ -457,7 +453,6 @@ class Domain(SimpleModel): :type: unicode """ - def __init__(self, raw): self.domain = raw.get('domain') self.ip_address = raw.get('ip_address') diff --git a/geoip2/records.py b/geoip2/records.py index f67f73ba..53b078c7 100644 --- a/geoip2/records.py +++ b/geoip2/records.py @@ -451,7 +451,6 @@ class Subdivisions(tuple): This attribute is returned by ``city``, ``enterprise``, and ``insights``. """ - def __new__(cls, locales, *subdivisions): subdivisions = [Subdivision(locales, **x) for x in subdivisions] obj = super(cls, Subdivisions).__new__(cls, subdivisions) diff --git a/geoip2/webservice.py b/geoip2/webservice.py index a2f3b288..a5bba4e7 100644 --- a/geoip2/webservice.py +++ b/geoip2/webservice.py @@ -81,7 +81,6 @@ class Client(object): * zh-CN -- Simplified Chinese. """ - def __init__( self, account_id=None,