[tor-commits] [stem/master] Dropping @lru_cache for Version hashing

atagar at torproject.org atagar at torproject.org
Mon Oct 14 00:42:16 UTC 2013


commit d32d4ab45d27776385036b1a57d9329f270354fc
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Oct 12 20:11:23 2013 -0700

    Dropping @lru_cache for Version hashing
    
    The @lru_cache calls hash() so if ever called this would infinitely recurse.
---
 stem/version.py |    1 -
 1 file changed, 1 deletion(-)

diff --git a/stem/version.py b/stem/version.py
index eca03cf..c87d325 100644
--- a/stem/version.py
+++ b/stem/version.py
@@ -247,7 +247,6 @@ class Version(object):
 
     return self._compare(other, lambda s, o: s >= o)
 
-  @lru_cache()
   def __hash__(self):
     my_hash = 0
 





More information about the tor-commits mailing list