From 33fb6190aec98ca1a89f5db366e03f25ffc7f717 Mon Sep 17 00:00:00 2001 From: Amr Hassan Date: Tue, 6 Oct 2009 15:04:52 +0000 Subject: [PATCH] _BaseObject.__hash__() is now case-insensitive --- .build | 2 +- pylast.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build b/.build index 3f10ffe..19c7bdb 100644 --- a/.build +++ b/.build @@ -1 +1 @@ -15 \ No newline at end of file +16 \ No newline at end of file diff --git a/pylast.py b/pylast.py index 240cda1..855c8d3 100644 --- a/pylast.py +++ b/pylast.py @@ -1035,7 +1035,7 @@ class _BaseObject(object): def __hash__(self): return hash(self.network) + \ - hash(str(type(self)) + "".join(self._get_params().keys() + self._get_params().values())) + hash(str(type(self)) + "".join(self._get_params().keys() + self._get_params().values()).lower()) class _Taggable(object): """Common functions for classes with tags."""