summaryrefslogtreecommitdiff
path: root/python/skytools/hashtext.py
diff options
context:
space:
mode:
authorMarko Kreen2012-12-20 15:08:39 +0000
committerMarko Kreen2012-12-20 15:08:39 +0000
commit7e0f0f29a9421999d2ae02cc7fe8f2df4fe5fc78 (patch)
tree2d0d3e6e2fcf001419caab9213cf1400d72939b9 /python/skytools/hashtext.py
parent303b635f6753605a0d052537970468465feb897e (diff)
Clean hashtext.py imports
Diffstat (limited to 'python/skytools/hashtext.py')
-rw-r--r--python/skytools/hashtext.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/skytools/hashtext.py b/python/skytools/hashtext.py
index 6a9cf11d..bc7ac024 100644
--- a/python/skytools/hashtext.py
+++ b/python/skytools/hashtext.py
@@ -1,5 +1,8 @@
"""
-Pure python implementation of Postgres hashes
+Implementation of Postgres hashing function.
+
+hashtext_old() - used up to PostgreSQL 8.3
+hashtext_new() - used since PostgreSQL 8.4
>>> import skytools._chashtext
>>> for i in range(3):
@@ -27,10 +30,7 @@ True
import sys, struct
-__all__ = [
- "hashtext_old_py", "hashtext_new_py",
- "hashtext_old", "hashtext_new"
-]
+__all__ = ["hashtext_old", "hashtext_new"]
# pad for last partial block
PADDING = '\0' * 12