/usr/lib/python3/dist-packages/custodia/compat.py is in python3-custodia 0.5.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
"""Python 2/3 compatibility
"""
# pylint: disable=no-name-in-module,import-error
from __future__ import absolute_import
import six
if six.PY2:
# use https://pypi.python.org/pypi/configparser/ on Python 2
from backports import configparser
from urllib import quote as url_escape
from urllib import quote_plus, unquote
from urlparse import parse_qs, urlparse
else:
import configparser
from urllib.parse import quote as url_escape
from urllib.parse import parse_qs, quote_plus, unquote, urlparse
__all__ = (
'configparser',
'parse_qs', 'quote_plus', 'unquote', 'url_escape', 'urlparse'
)
|