Skip to content

Commit 208e769

Browse files
committed
Fix setup and pylint error
1 parent ffc9627 commit 208e769

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

geoip2/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def __init__(self, raw_response, locales=None):
7878
geoip2.records.Country(locales,
7979
**raw_response.get('registered_country',
8080
{}))
81+
# pylint:disable=bad-continuation
8182
self.represented_country \
8283
= geoip2.records.RepresentedCountry(locales,
8384
**raw_response.get(

geoip2/webservice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def _handle_4xx_status(self, response, status, uri):
189189
elif response.headers['Content-Type'].find('json') == -1:
190190
raise HTTPError('Received a %i for %s with the following '
191191
'body: %s' %
192-
(status, uri, response.content),
192+
(status, uri, response.content),
193193
status, uri)
194194
try:
195195
body = response.json()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
package_dir={'geoip2': 'geoip2'},
3434
include_package_data=True,
3535
install_requires=requirements,
36-
extras_require={':python_version<"3.3"': ['ipaddr']},
36+
extras_require={'python_version in "2.6 2.7"': ['ipaddr']},
3737
tests_require=['httpretty>=0.6.1'],
3838
test_suite="tests",
3939
license=geoip2.__license__,

0 commit comments

Comments
 (0)