[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Revert "Chaching version comparison and hash function"
commit 94b4924a3970fe3877b276ad2d07ccd149ed8d3a
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Thu Oct 10 08:51:59 2013 -0700
Revert "Chaching version comparison and hash function"
Wow, shame on me for not even running unit tests. This causes version
comparisons to infinitely recurse - hot.
---
stem/version.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/stem/version.py b/stem/version.py
index 613c4a5..68faa36 100644
--- a/stem/version.py
+++ b/stem/version.py
@@ -187,7 +187,6 @@ class Version(object):
return self.version_str
- @lru_cache()
def _compare(self, other, method):
"""
Compares version ordering according to the spec.
@@ -248,7 +247,6 @@ class Version(object):
return self._compare(other, lambda s, o: s >= o)
- @lru_cache()
def __hash__(self):
my_hash = 0
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits