Skip to content

Commit

Permalink
devel/py-hash_ring: Fix build with setuptools 58.0.0+
Browse files Browse the repository at this point in the history
With hat:	python
  • Loading branch information
sunpoet committed Mar 25, 2022
1 parent 5c166cb commit 4e3b12e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions devel/py-hash_ring/files/patch-2to3
@@ -0,0 +1,12 @@
--- hash_ring/__init__.py.orig 2012-12-15 01:14:49 UTC
+++ hash_ring/__init__.py
@@ -1,6 +1,6 @@
-from hash_ring import HashRing
+from .hash_ring import HashRing

try:
- from memcache_ring import MemcacheRing
-except ImportError, e:
+ from .memcache_ring import MemcacheRing
+except ImportError as e:
pass

0 comments on commit 4e3b12e

Please sign in to comment.