Let us walk on the 3-isogeny graph
|
Data Structures | |
class | BaseConfigurator |
class | CertificateError |
class | ChainMap |
class | Container |
class | ConvertingDict |
class | ConvertingList |
class | ConvertingTuple |
class | OrderedDict |
class | ZipExtFile |
class | ZipFile |
Functions | |
quote (s) | |
_dnsname_match (dn, hostname, max_wildcards=1) | |
match_hostname (cert, hostname) | |
which (cmd, mode=os.F_OK|os.X_OK, path=None) | |
python_implementation () | |
callable (obj) | |
fsencode (filename) | |
fsdecode (filename) | |
_get_normal_name (orig_enc) | |
detect_encoding (readline) | |
_recursive_repr (fillvalue='...') | |
cache_from_source (path, debug_override=None) | |
valid_ident (s) | |
pop (self, key, default=None) | |
Variables | |
ssl = None | |
string_types = basestring, | |
text_type = unicode | |
raw_input = raw_input | |
filter = filter | |
ZipFile = BaseZipFile | |
callable = callable | |
fsencode = os.fsencode | |
fsdecode = os.fsdecode | |
str | _fsencoding = sys.getfilesystemencoding() or 'utf-8' |
str | _fserrors = 'strict' |
cookie_re = re.compile(r"coding[:=]\s*([-\w.]+)") | |
unescape = HTMLParser().unescape | |
IDENTIFIER = re.compile('^[a-z_][a-z0-9_]*$', re.I) | |
|
protected |
Matching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3
Definition at line 99 of file compat.py.
Referenced by pip._vendor.distlib.compat.match_hostname().
|
protected |
Imitates get_normal_name in tokenizer.c.
Definition at line 369 of file compat.py.
References i.
Referenced by pip._vendor.distlib.compat.detect_encoding().
|
protected |
Decorator to make a repr function return fillvalue for a recursive call
Definition at line 488 of file compat.py.
References i.
cache_from_source | ( | path, | |
debug_override = None |
|||
) |
detect_encoding | ( | readline | ) |
The detect_encoding() function is used to detect the encoding that should be used to decode a Python source file. It requires one argument, readline, in the same way as the tokenize() generator. It will call readline a maximum of twice, and return the encoding used (as a string) and a list of any lines (left as bytes) it has read in. It detects the encoding from the presence of a utf-8 bom or an encoding cookie as specified in pep-0263. If both a bom and a cookie are present, but disagree, a SyntaxError will be raised. If the encoding cookie is an invalid charset, raise a SyntaxError. Note that if a utf-8 bom is found, 'utf-8-sig' is returned. If no encoding is specified, then the default of 'utf-8' will be returned.
Definition at line 380 of file compat.py.
References pip._vendor.distlib.compat._get_normal_name(), and i.
fsdecode | ( | filename | ) |
fsencode | ( | filename | ) |
match_hostname | ( | cert, | |
hostname | |||
) |
Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. CertificateError is raised on failure. On success, the function returns nothing.
Definition at line 149 of file compat.py.
References pip._vendor.distlib.compat._dnsname_match(), and i.
pop | ( | self, | |
key, | |||
default = None |
|||
) |
Definition at line 940 of file compat.py.
References i.
python_implementation | ( | ) |
valid_ident | ( | s | ) |
Definition at line 897 of file compat.py.
References i.
which | ( | cmd, | |
mode = os.F_OK | os.X_OK , |
|||
path = None |
|||
) |
Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result of os.environ.get("PATH"), or can be overridden with a custom search path.
Definition at line 207 of file compat.py.
References i.
callable = callable |
Definition at line 319 of file compat.py.
Referenced by BaseConfigurator.configure_custom().