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) 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.