Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / lib / python2.7 / dist-packages / twisted / python / | server ip : 172.67.156.115 your ip : 172.70.131.14 H O M E |
Filename | /usr/lib/python2.7/dist-packages/twisted/python/hashlib.py |
Size | 821 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:56 |
Last modified | 15-May-2013 01:23 |
Last accessed | 06-Jul-2025 19:30 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
# -*- test-case-name: twisted.python.test.test_hashlib -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Deprecated in Twisted 13.1.0; please use hashlib from stdlib instead.
L{twisted.python.hashlib} presents a subset of the interface provided by
U{hashlib<http://docs.python.org/library/hashlib.html>}. The subset is the
interface required by various parts of Twisted. This allows application code
to transparently use APIs which existed before C{hashlib} was introduced or to
use C{hashlib} if it is available.
"""
from __future__ import absolute_import
from hashlib import md5, sha1
import warnings
__all__ = ["md5", "sha1"]
warnings.warn(
"twisted.python.hashlib was deprecated in "
"Twisted 13.1.0: Please use hashlib from stdlib.",
DeprecationWarning, stacklevel=2)
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Deprecated in Twisted 13.1.0; please use hashlib from stdlib instead.
L{twisted.python.hashlib} presents a subset of the interface provided by
U{hashlib<http://docs.python.org/library/hashlib.html>}. The subset is the
interface required by various parts of Twisted. This allows application code
to transparently use APIs which existed before C{hashlib} was introduced or to
use C{hashlib} if it is available.
"""
from __future__ import absolute_import
from hashlib import md5, sha1
import warnings
__all__ = ["md5", "sha1"]
warnings.warn(
"twisted.python.hashlib was deprecated in "
"Twisted 13.1.0: Please use hashlib from stdlib.",
DeprecationWarning, stacklevel=2)