# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT # OVERRIDES FILE: static-pi-files/3.6/reoverride.py """ Support for regular expressions (RE). This module provides regular expression matching operations similar to those found in Perl. It supports both 8-bit and Unicode strings; both the pattern and the strings being processed can contain null bytes and characters outside the US ASCII range. Regular expressions can contain both special and ordinary characters. Most ordinary characters, like "A", "a", or "0", are the simplest regular expressions; they simply match themselves. You can concatenate ordinary characters, so last matches the string 'last'. The special characters are: "." Matches any character except a newline. "^" Matches the start of the string. "$" Matches the end of the string or just before the newline at the end of the string. "*" Matches 0 or more (greedy) repetitions of the preceding RE. Greedy means that it will match as many repetitions as possible. "+" Matches 1 or more (greedy) repetitions of the preceding RE. "?" Matches 0 or 1 (greedy) of the preceding RE. *?,+?,?? Non-greedy versions of the previous three special characters. {m,n} Matches from m to n repetitions of the preceding RE. {m,n}? Non-greedy version of the above. "\\\\" Either escapes special characters or signals a special sequence. [] Indicates a set of characters. A "^" as the first character indicates a complementing set. "|" A|B, creates an RE that will match either A or B. (...) Matches the RE inside the parentheses. The contents can be retrieved or matched later in the string. (?aiLmsux) The letters set the corresponding flags defined below. (?:...) Non-grouping version of regular parentheses. (?P...) The substring matched by the group is accessible by name. (?P=name) Matches the text matched earlier by the group named name. (?#...) A comment; ignored. (?=...) Matches if ... matches next, but doesn't consume the string. (?!...) Matches if ... doesn't match next. (?<=...) Matches if preceded by ... (must be fixed length). (? str or tuple. Return subgroup(s) of the match by indices or names. For 0 returns the entire match. """ return () def groupdict(self, default=None): """ Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name. default Is used for groups that did not participate in the match. """ pass def groups(self, default=None): """ Return a tuple containing all the subgroups of the match, from 1. default Is used for groups that did not participate in the match. """ pass lastgroup = property(None, None, None, """ The name of the last matched capturing group. """ ) lastindex = property(None, None, None, """ The integer index of the last matched capturing group. """ ) pos = None re = None regs = property(None, None, None, ) def span(self, group=0): """ For match object m, return the 2-tuple (m.start(group), m.end(group)). """ pass def start(self, group=0): """ Return index of the start of the substring matched by group. """ pass string = None class Pattern(object): """ Compiled regular expression object. """ def findall(self, string, pos=0, endpos=9223372036854775807): """ Return a list of all non-overlapping matches of pattern in string. """ pass def finditer(self, string, pos=0, endpos=9223372036854775807): """ Return an iterator over all non-overlapping matches for the RE pattern in string. For each match, the iterator returns a match object. """ pass flags = None def fullmatch(self, string, pos=0, endpos=9223372036854775807): """ Matches against all of the string. """ pass groupindex = property(None, None, None, """ A dictionary mapping group names to group numbers. """ ) groups = None def match(self, string, pos=0, endpos=9223372036854775807): """ Matches zero or more characters at the beginning of the string. """ pass pattern = None def scanner(self, string, pos=0, endpos=9223372036854775807): pass def search(self, string, pos=0, endpos=9223372036854775807): """ Scan through string looking for a match, and return a corresponding match object instance. Return None if no position in the string matches. """ pass def split(self, string, maxsplit=0): """ Split string by the occurrences of pattern. """ pass def sub(self, repl, string, count=0): """ Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. """ pass def subn(self, repl, string, count=0): """ Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl. """ pass class RegexFlag(IntFlag): """ An enumeration. """ ASCII = None DEBUG = None DOTALL = None IGNORECASE = None LOCALE = None MULTILINE = None TEMPLATE = None UNICODE = None VERBOSE = None class Scanner(object): def __init__(self, lexicon, flags=0): pass def scan(self, string): pass _MAXCACHE = 512 __all__ = [] __version__ = '2.2.1' _cache = {} def _compile(pattern, flags): pass def _compile_repl(repl, pattern): pass def _expand(pattern, match, template): pass _locale = None def _pickle(p): pass _special_chars_map = {} def _subx(pattern, template): pass def compile(pattern, flags=0): """ Compile a regular expression pattern, returning a Pattern object. """ pass copyreg = None enum = None class error(Exception): """ Exception raised for invalid regular expressions. Attributes: msg: The unformatted error message pattern: The regular expression pattern pos: The index in the pattern where compilation failed (may be None) lineno: The line corresponding to pos (may be None) colno: The column corresponding to pos (may be None) """ def __init__(self, msg, pattern=None, pos=None): pass def escape(pattern): """ Escape special characters in a string. """ pass def findall(pattern, string, flags=0): """ Return a list of all non-overlapping matches in the string. If one or more capturing groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group. Empty matches are included in the result. """ pass def finditer(pattern, string, flags=0): """ Return an iterator over all non-overlapping matches in the string. For each match, the iterator returns a Match object. Empty matches are included in the result. """ pass def fullmatch(pattern, string, flags=0): """ Try to apply the pattern to all of the string, returning a Match object, or None if no match was found. """ pass functools = None def match(pattern, string, flags=0): """ Try to apply the pattern at the start of the string, returning a Match object, or None if no match was found. """ pass def purge(): """ Clear the regular expression caches """ pass def search(pattern, string, flags=0): """ Scan through string looking for a match to the pattern, returning a Match object, or None if no match was found. """ pass def split(pattern, string, maxsplit=0, flags=0): """ Split the source string by the occurrences of the pattern, returning a list containing the resulting substrings. If capturing parentheses are used in pattern, then the text of all groups in the pattern are also returned as part of the resulting list. If maxsplit is nonzero, at most maxsplit splits occur, and the remainder of the string is returned as the final element of the list. """ pass sre_compile = None sre_parse = None def sub(pattern, repl, string, count=0, flags=0): """ Return the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in string by the replacement repl. repl can be either a string or a callable; if a string, backslash escapes in it are processed. If it is a callable, it's passed the Match object and must return a replacement string to be used. """ pass def subn(pattern, repl, string, count=0, flags=0): """ Return a 2-tuple containing (new_string, number). new_string is the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in the source string by the replacement repl. number is the number of substitutions that were made. repl can be either a string or a callable; if a string, backslash escapes in it are processed. If it is a callable, it's passed the Match object and must return a replacement string to be used. """ pass def template(pattern, flags=0): """ Compile a template pattern, returning a Pattern object """ pass # BEGIN MANUAL OVERRIDES FROM static-pi-files/3.6/reoverride.py A = 1 ASCII = 1 DEBUG = 1 DOTALL = 1 I = 1 IGNORECASE = 1 L = 1 LOCALE = 1 M = 1 MULTILINE = 1 S = 1 T = 1 TEMPLATE = 1 U = 1 UNICODE = 1 VERBOSE = 1 X = 1 __builtins__ = {} __cached__ = '/home/shared/src/ide/build-files/static-pi-files/3.6/__pycache__/reoverride.cpython-310.pyc' __doc__ = None __file__ = '/home/shared/src/ide/build-files/static-pi-files/3.6/reoverride.py' __loader__ = None __name__ = 'reoverride' __package__ = '' # END MANUAL OVERRIDES