From 0598c178ec6d0bd9e776c731d38139d273c1bdc0 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Thu, 17 Dec 2009 18:30:30 +0000 Subject: [PATCH] htmlrenderer : use vars() instead of inline dictionary. svn: r13839 --- src/plugins/view/htmlrenderer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/view/htmlrenderer.py b/src/plugins/view/htmlrenderer.py index 00c808d98..2f2432c07 100644 --- a/src/plugins/view/htmlrenderer.py +++ b/src/plugins/view/htmlrenderer.py @@ -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.