• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / AccessControl / 4274890848

pending completion
4274890848

push

github

Jens Vagelpohl
- vb [ci skip]

934 of 1458 branches covered (64.06%)

Branch coverage included in aggregate %.

4982 of 5839 relevant lines covered (85.32%)

4.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/AccessControl/AuthEncoding.py
1
##############################################################################
2
#
3
# Copyright (c) 2002 Zope Foundation and Contributors.
4
#
5
# This software is subject to the provisions of the Zope Public License,
6
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
7
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10
# FOR A PARTICULAR PURPOSE
11
#
12
##############################################################################
13

14

15
import AuthEncoding.AuthEncoding
×
16
from zope.deferredimport import deprecated
×
17

18

19
deprecated(
×
20
    "The functionality of AccessControl.AuthEncoding has moved to"
21
    " AuthEncoding.AuthEncoding. Please import from there."
22
    " This backward compatibility shim will be removed in AccessControl"
23
    " version 6.",
24
    MySQLDigestScheme='AuthEncoding.AuthEncoding:MySQLDigestScheme',
25
    PasswordEncryptionScheme='AuthEncoding.AuthEncoding:PasswordEncryptionScheme',  # noqa
26
    SHADigestScheme='AuthEncoding.AuthEncoding:SHADigestScheme',
27
    SSHADigestScheme='AuthEncoding.AuthEncoding:SSHADigestScheme',
28
    constant_time_compare='AuthEncoding.AuthEncoding:constant_time_compare',
29
    is_encrypted='AuthEncoding.AuthEncoding:is_encrypted',
30
    listSchemes='AuthEncoding.AuthEncoding:listSchemes',
31
    pw_encode='AuthEncoding.AuthEncoding:pw_encode',
32
    pw_encrypt='AuthEncoding.AuthEncoding:pw_encrypt',
33
    pw_validate='AuthEncoding.AuthEncoding:pw_validate',
34
    registerScheme='AuthEncoding.AuthEncoding:registerScheme',
35
)
36

37
# Bogosity on various platforms due to ITAR restrictions.
38
# We need to import the module anyway to check for the presence of
39
# restrictions, but do want to silence the ImportError.
40

41
if hasattr(AuthEncoding.AuthEncoding, 'CryptDigestScheme'):
×
42
    deprecated(
×
43
        "The functionality of AccessControl.AuthEncoding has moved to"
44
        " AuthEncoding.AuthEncoding. Please import from there."
45
        " This backward compatibility shim will be removed in AccessControl"
46
        " version 6.",
47
        CryptDigestScheme='AuthEncoding.AuthEncoding:CryptDigestScheme',
48
    )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc