gh-82 Fix notifications from flake8 and add mock module to requirements.txt
This commit is contained in:
parent
0d154d67c9
commit
5204253ad2
|
@ -20,7 +20,7 @@ location_db = '{}/location.json'.format(application_directory)
|
|||
script_directory = path.dirname(path.dirname(path.abspath(__file__)))
|
||||
|
||||
#: Path to Elodie's ExifTool config file.
|
||||
exiftool_config = path.join(script_directory,'configs','ExifTool_config')
|
||||
exiftool_config = path.join(script_directory, 'configs', 'ExifTool_config')
|
||||
|
||||
#: Accepted language in responses from MapQuest
|
||||
accepted_language = 'en'
|
||||
|
|
|
@ -164,7 +164,7 @@ def reverse_lookup(lat, lon):
|
|||
headers = {"Accept-Language": constants.accepted_language}
|
||||
r = requests.get(
|
||||
'http://open.mapquestapi.com/nominatim/v1/reverse.php?%s' %
|
||||
urllib.urlencode(params),headers=headers
|
||||
urllib.urlencode(params), headers=headers
|
||||
)
|
||||
return r.json()
|
||||
except requests.exceptions.RequestException as e:
|
||||
|
|
|
@ -2,3 +2,4 @@ click>=6.2,<7.0
|
|||
LatLon>=1.0.2,<2.0
|
||||
requests>=2.9.1,<3.0
|
||||
send2trash>=1.3.0,<2.0
|
||||
mock>=1.3.0
|
||||
|
|
Loading…
Reference in New Issue