summaryrefslogtreecommitdiff
path: root/python/skytools
diff options
context:
space:
mode:
Diffstat (limited to 'python/skytools')
-rw-r--r--python/skytools/__init__.py4
-rw-r--r--python/skytools/hashtext.py (renamed from python/skytools/pyhashtext.py)4
2 files changed, 4 insertions, 4 deletions
diff --git a/python/skytools/__init__.py b/python/skytools/__init__.py
index c3b4f00a..dd9473b9 100644
--- a/python/skytools/__init__.py
+++ b/python/skytools/__init__.py
@@ -134,8 +134,8 @@ _symbols = {
# skytools.utf8
'safe_utf8_decode': 'skytools.utf8:safe_utf8_decode',
# hashing
- 'hashtext_old': 'skytools.pyhashtext:hashtext_old',
- 'hashtext_new': 'skytools.pyhashtext:hashtext_new',
+ 'hashtext_old': 'skytools.hashtext:hashtext_old',
+ 'hashtext_new': 'skytools.hashtext:hashtext_new',
}
__all__ = _symbols.keys()
diff --git a/python/skytools/pyhashtext.py b/python/skytools/hashtext.py
index 17795f3b..6a9cf11d 100644
--- a/python/skytools/pyhashtext.py
+++ b/python/skytools/hashtext.py
@@ -1,7 +1,7 @@
"""
Pure python implementation of Postgres hashes
->>> import skytools.hashtext
+>>> import skytools._chashtext
>>> for i in range(3):
... print [hashtext_new_py('x' * (i*5 + j)) for j in range(5)]
[-1477818771, 1074944137, -1086392228, -1992236649, -1379736791]
@@ -150,7 +150,7 @@ def hashtext_new_py(k):
try:
- from skytools.hashtext import hashtext_old, hashtext_new
+ from skytools._chashtext import hashtext_old, hashtext_new
except ImportError:
hashtext_old = hashtext_old_py
hashtext_new = hashtext_new_py