Use string templating

pull/2870/head
Teagan M. Glenn 2016-08-18 10:46:24 -06:00
parent 25840f97c2
commit 90449a90f1
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class WUndergroundData(object):
def _build_url(self):
url = _RESOURCE.format(self._api_key)
if self._pws_id:
url = url + 'pws:' + self._pws_id
url = url + 'pws:{}'.format(self._pws_id)
else:
url = url + '{},{}'.format(self._latitude, self._longitude)