MCPcopy Index your code
hub / github.com/python/cpython / extend

Method extend

Lib/zipfile/_path/glob.py:32–41  ·  view source on GitHub ↗

r""" Extend regex for pattern-wide concerns. Apply '(?s:)' to create a non-matching group that matches newlines (valid on Unix). Append '\z' to imply fullmatch even when match is used.

(self, pattern)

Source from the content-addressed store, hash-verified

30 return self.extend(self.match_dirs(self.translate_core(pattern)))
31
32 def extend(self, pattern):
33 r"""
34 Extend regex for pattern-wide concerns.
35
36 Apply '(?s:)' to create a non-matching group that
37 matches newlines (valid on Unix).
38
39 Append '\z' to imply fullmatch even when match is used.
40 """
41 return rf'(?s:{pattern})\z'
42
43 def match_dirs(self, pattern):
44 """

Callers 1

translateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected