Commit 934d1b0c authored by Andreas Jung's avatar Andreas Jung

using hashlib.sha1 if available in order to avoid DeprecationWarning

under Python 2.6
parent 5c60fe34
...@@ -19,7 +19,10 @@ This mechanism offers *no network security at all*; the only security ...@@ -19,7 +19,10 @@ This mechanism offers *no network security at all*; the only security
is provided by not storing plaintext passwords on disk. is provided by not storing plaintext passwords on disk.
""" """
import sha try
from hashlib import sha1 as sha
except ImportError:
import sha
from ZEO.StorageServer import ZEOStorage from ZEO.StorageServer import ZEOStorage
from ZEO.auth import register_module from ZEO.auth import register_module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment