From 2693b563a80e6906ace3f97b17e42012404b5cdc Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 25 Sep 2013 12:35:11 +0200 Subject: [PATCH] Remove useless function (2O minutes code in ecrans...) --- modules/ecrans/tools.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/modules/ecrans/tools.py b/modules/ecrans/tools.py index 8f9a94a7..6163e3a9 100644 --- a/modules/ecrans/tools.py +++ b/modules/ecrans/tools.py @@ -18,22 +18,9 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . - import re -def id2url(_id): - "return an url from an id" - regexp2 = re.compile("(\w+).([0-9]+).(.*$)") - match = regexp2.match(_id) - if match: - return 'http://www.20minutes.fr/%s/%s/%s' % (match.group(1), - match.group(2), - match.group(3)) - else: - raise ValueError("id doesn't match") - - def url2id(url): "return an id from an url" regexp = re.compile("(^.*),([0-9]+)\.html$")