diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-02 20:39:38 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-02 20:43:05 -0500 |
| commit | e04aa8ac322a8cb92064ccf832d864674eddb964 (patch) | |
| tree | c51aa54153c1d66d87359239ace500270ece38db /tools | |
| parent | 763cf01ef7df80a5d0b64ec69427336a9cb419b8 (diff) | |
| download | python-setuptools-git-e04aa8ac322a8cb92064ccf832d864674eddb964.tar.gz | |
Remove 'lorem_ipsum' property from jaraco.text, bypassing the behavior on import and other issues.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/vendored.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/vendored.py b/tools/vendored.py index a5f3b9f1..7159928a 100644 --- a/tools/vendored.py +++ b/tools/vendored.py @@ -37,6 +37,8 @@ def rewrite_jaraco_text(pkg_files, new_root): text = file.read_text() text = re.sub(r' (jaraco\.)', rf' {new_root}.\1', text) text = re.sub(r' (importlib_resources)', rf' {new_root}.\1', text) + # suppress loading of lorem_ipsum; ref #3072 + text = re.sub(r'^lorem_ipsum.*\n$', '', text, flags=re.M) file.write_text(text) |
