htmlrenderer : use vars() instead of inline dictionary.

svn: r13839
This commit is contained in:
Serge Noiraud 2009-12-17 18:30:30 +00:00
parent a52663d0cd
commit 0598c178ec

View File

@ -398,11 +398,7 @@ class RendererMozilla(Renderer):
port = str(port)
(lang_country, modifier ) = locale.getlocale()
lang = lang_country.split('_')[0]
prefs.write(MOZJS % {
'host' : host,
'port' : port,
'lang' : lang
} )
prefs.write(MOZJS % vars() )
prefs.close()
except:
try: # trying to remove pref.js in case of proxy change.