From 4a6107615d8c2612135806253a3577c257beed13 Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 7 Nov 2012 17:33:45 +0100 Subject: [PATCH] Increase readability of "id" variable --- weboob/tools/capabilities/messages/GenericBackend.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/weboob/tools/capabilities/messages/GenericBackend.py b/weboob/tools/capabilities/messages/GenericBackend.py index 2151ac1e..2ae28d2f 100644 --- a/weboob/tools/capabilities/messages/GenericBackend.py +++ b/weboob/tools/capabilities/messages/GenericBackend.py @@ -43,18 +43,19 @@ class GenericNewspaperBackend(BaseBackend, ICapMessages): def get_thread(self, _id): if isinstance(_id, Thread): thread = _id - _id = thread.id + id = thread.id else: thread = None + id = _id with self.browser: - content = self.browser.get_content(_id) + content = self.browser.get_content(id) if content is None: return None if not thread: - thread = Thread(_id) + thread = Thread(id) flags = Message.IS_HTML if not thread.id in self.storage.get('seen', default={}):