htmlrenderer : use vars() instead of inline dictionary.
svn: r13839
This commit is contained in:
parent
a52663d0cd
commit
0598c178ec
@ -398,11 +398,7 @@ class RendererMozilla(Renderer):
|
|||||||
port = str(port)
|
port = str(port)
|
||||||
(lang_country, modifier ) = locale.getlocale()
|
(lang_country, modifier ) = locale.getlocale()
|
||||||
lang = lang_country.split('_')[0]
|
lang = lang_country.split('_')[0]
|
||||||
prefs.write(MOZJS % {
|
prefs.write(MOZJS % vars() )
|
||||||
'host' : host,
|
|
||||||
'port' : port,
|
|
||||||
'lang' : lang
|
|
||||||
} )
|
|
||||||
prefs.close()
|
prefs.close()
|
||||||
except:
|
except:
|
||||||
try: # trying to remove pref.js in case of proxy change.
|
try: # trying to remove pref.js in case of proxy change.
|
||||||
|
Loading…
Reference in New Issue
Block a user