Perform the replacements for a match from :func:`separate`.
(self, match)
| 64 | return ''.join(map(self.replace, separate(self.star_not_empty(pattern)))) |
| 65 | |
| 66 | def replace(self, match): |
| 67 | """ |
| 68 | Perform the replacements for a match from :func:`separate`. |
| 69 | """ |
| 70 | return match.group('set') or ( |
| 71 | re.escape(match.group(0)) |
| 72 | .replace('\\*\\*', r'.*') |
| 73 | .replace('\\*', rf'[^{re.escape(self.seps)}]*') |
| 74 | .replace('\\?', r'[^/]') |
| 75 | ) |
| 76 | |
| 77 | def restrict_rglob(self, pattern): |
| 78 | """ |
no test coverage detected