From 8595c177dd52b93ac3948ecc80d6e1dd01d351ff Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 7 Mar 2011 18:20:10 +0100 Subject: [PATCH] Google: fix @calc --- plugins/Google/plugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index 685e907c7..de5814b0e 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -339,9 +339,7 @@ class Google(callbacks.PluginRegexp): """ url = self._googleUrl(expr) html = utils.web.getUrl(url) - match = self._calcRe1.search(html) - if match is None: - match = self._calcRe2.search(html) + match = self._calcRe.search(html) if match is not None: s = match.group(1) s = self._calcSupRe.sub(r'^(\1)', s)