$42 GRAYBYTE WORDPRESS FILE MANAGER $58

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/lib/python3.6/site-packages/dns/

HOME
Current File : /usr/lib/python3.6/site-packages/dns//_compat.py
import sys
import decimal
from decimal import Context

if sys.version_info > (3,):
    long = int
    xrange = range
else:
    long = long  # pylint: disable=long-builtin
    xrange = xrange  # pylint: disable=xrange-builtin

# unicode / binary types
if sys.version_info > (3,):
    text_type = str
    binary_type = bytes
    string_types = (str,)
    unichr = chr
    def maybe_decode(x):
        return x.decode()
    def maybe_encode(x):
        return x.encode()
else:
    text_type = unicode  # pylint: disable=unicode-builtin, undefined-variable
    binary_type = str
    string_types = (
        basestring,  # pylint: disable=basestring-builtin, undefined-variable
    )
    unichr = unichr  # pylint: disable=unichr-builtin
    def maybe_decode(x):
        return x
    def maybe_encode(x):
        return x


def round_py2_compat(what):
    """
    Python 2 and Python 3 use different rounding strategies in round(). This
    function ensures that results are python2/3 compatible and backward
    compatible with previous py2 releases
    :param what: float
    :return: rounded long
    """
    d = Context(
        prec=len(str(long(what))),  # round to integer with max precision
        rounding=decimal.ROUND_HALF_UP
    ).create_decimal(str(what))  # str(): python 2.6 compat
    return long(d)


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
2 Apr 2026 3.01 PM
root / root
0755
__pycache__
--
9 Jun 2024 8.36 AM
root / root
0755
rdtypes
--
9 Jun 2024 8.36 AM
root / root
0755
__init__.py
1.296 KB
20 Sep 2016 4.24 PM
root / root
0644
_compat.py
1.282 KB
20 Sep 2016 4.24 PM
root / root
0644
dnssec.py
14.444 KB
20 Sep 2016 4.24 PM
root / root
0644
e164.py
3.073 KB
20 Sep 2016 4.24 PM
root / root
0644
edns.py
4.281 KB
20 Sep 2016 4.24 PM
root / root
0644
entropy.py
4.36 KB
20 Sep 2016 4.24 PM
root / root
0644
exception.py
4.518 KB
20 Sep 2016 7.13 PM
root / root
0644
flags.py
2.602 KB
20 Sep 2016 4.24 PM
root / root
0644
grange.py
1.927 KB
20 Sep 2016 4.24 PM
root / root
0644
hash.py
1.074 KB
20 Sep 2016 4.24 PM
root / root
0644
inet.py
3.166 KB
20 Sep 2016 4.24 PM
root / root
0644
ipv4.py
1.983 KB
20 Sep 2016 4.24 PM
root / root
0644
ipv6.py
5.169 KB
20 Sep 2016 4.24 PM
root / root
0644
message.py
42.118 KB
26 Sep 2016 3.38 PM
root / root
0644
name.py
28.735 KB
23 May 2024 10.29 AM
root / root
0644
namedict.py
3.591 KB
20 Sep 2016 4.24 PM
root / root
0644
node.py
5.914 KB
20 Sep 2016 4.24 PM
root / root
0644
opcode.py
2.479 KB
20 Sep 2016 4.24 PM
root / root
0644
query.py
19.185 KB
23 May 2024 10.29 AM
root / root
0644
rcode.py
3.031 KB
20 Sep 2016 4.24 PM
root / root
0644
rdata.py
14.646 KB
20 Sep 2016 4.24 PM
root / root
0644
rdataclass.py
3.182 KB
20 Sep 2016 4.24 PM
root / root
0644
rdataset.py
11.285 KB
20 Sep 2016 4.24 PM
root / root
0644
rdatatype.py
5.214 KB
20 Sep 2016 7.54 PM
root / root
0644
renderer.py
11.644 KB
20 Sep 2016 4.24 PM
root / root
0644
resolver.py
50.884 KB
26 Sep 2016 3.52 PM
root / root
0644
reversename.py
3.233 KB
20 Sep 2016 4.24 PM
root / root
0644
rrset.py
5.854 KB
25 Sep 2016 7.25 PM
root / root
0644
set.py
7.534 KB
20 Sep 2016 4.24 PM
root / root
0644
tokenizer.py
17.884 KB
20 Sep 2016 4.24 PM
root / root
0644
tsig.py
7.537 KB
20 Sep 2016 4.24 PM
root / root
0644
tsigkeyring.py
1.696 KB
20 Sep 2016 4.24 PM
root / root
0644
ttl.py
2.229 KB
20 Sep 2016 4.24 PM
root / root
0644
update.py
9.777 KB
20 Sep 2016 4.24 PM
root / root
0644
version.py
1.229 KB
20 Sep 2016 4.24 PM
root / root
0644
wiredata.py
3.644 KB
20 Sep 2016 4.24 PM
root / root
0644
zone.py
39.088 KB
29 Sep 2016 10.29 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF