From 337d2719be6a1d438584a8a347a9b24769e80a4c Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 29 Oct 2013 09:30:51 +0100 Subject: [PATCH] Cosmetics --- radicale/ical.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/radicale/ical.py b/radicale/ical.py index 162e3d1c..a0e33970 100644 --- a/radicale/ical.py +++ b/radicale/ical.py @@ -110,9 +110,9 @@ class Item(object): "\nEND:", "\nX-RADICALE-NAME:%s\nEND:" % self._name) def __hash__(self): - m = hashlib.md5() - m.update(self.text.encode('utf-8')) - return m.hexdigest() + md5 = hashlib.md5() + md5.update(self.text.encode("utf-8")) + return md5.hexdigest() def __eq__(self, item): return isinstance(item, Item) and self.text == item.text @@ -440,9 +440,9 @@ class Collection(object): @property def etag(self): """Etag from collection.""" - m = hashlib.md5() - m.update(self.text.encode('utf-8')) - return '"%s"' % m.hexdigest() + md5 = hashlib.md5() + md5.update(self.text.encode("utf-8")) + return '"%s"' % md5.hexdigest() @property def name(self):