(match)
| 96 | return False |
| 97 | |
| 98 | def _replacement(match): |
| 99 | if not overwrite and match.start('STAMP') != -1: |
| 100 | return match.group() |
| 101 | if version: |
| 102 | pattern = stamp_pattern_add.replace(b'VERSION', version.encode('utf-8')) |
| 103 | else: |
| 104 | pattern = stamp_pattern_remove |
| 105 | return match.expand(pattern) |
| 106 | |
| 107 | new_data, nrepl = stamp_re.subn(_replacement, data, 1) |
| 108 | if nrepl and new_data != data: |
nothing calls this directly
no test coverage detected
searching dependent graphs…