Fix coding error for _get_url
This commit is contained in:
1 parent
c4ef401a07
commit
f196bd631f
1 file changed
+4
-1
+4
-1
@@ -18,7 +18,10 @@ class Address(OSV):
|
||||
for i in ['street', 'streetbis', 'zip', 'city',
|
||||
'country', 'subdivision']:
|
||||
if vals.get(i):
|
||||
url += ' ' + vals[i]
|
||||
if isinstance(vals[i], str):
|
||||
url += ' ' + vals[i].decode('utf-8')
|
||||
else:
|
||||
url += ' ' + vals[i]
|
||||
if url.strip():
|
||||
url = 'http://maps.google.com/maps?hl=%s&q=%s' % \
|
||||
(lang, urllib.quote(url.strip().encode('utf-8')))
|
||||
|
||||
Reference in new issue
Block a user