Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -50,12 +50,12 @@ class IpinfodbBackend(BaseBackend, ICapGeolocIp):
|
|||
if 'Invalid IP or domain name' in content:
|
||||
raise Exception('Bad parameter')
|
||||
else:
|
||||
tab = {'City' : 'NA' ,\
|
||||
'Country name' : 'NA' ,\
|
||||
'Region' : 'NA' ,\
|
||||
'Latitude' : 'NA' ,\
|
||||
'Longitude' : 'NA' ,\
|
||||
'hostname' : 'NA' ,\
|
||||
tab = {'City' : 'NA' ,
|
||||
'Country name' : 'NA' ,
|
||||
'Region' : 'NA' ,
|
||||
'Latitude' : 'NA' ,
|
||||
'Longitude' : 'NA' ,
|
||||
'hostname' : 'NA' ,
|
||||
'zipcode' : 'NA'}
|
||||
line = ''
|
||||
for line in content.split('\n'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue