Skip to content

Commit

Permalink
Remove workaround to add __init__ for vendored jaraco package, seemin…
Browse files Browse the repository at this point in the history
…gly unnecessary.
  • Loading branch information
jaraco committed Jan 30, 2022
1 parent a84e03d commit 1290719
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Empty file.
3 changes: 0 additions & 3 deletions tools/vendored.py
Expand Up @@ -44,9 +44,6 @@ def rewrite_jaraco(pkg_files, new_root):
"""
Rewrite imports in jaraco.functools to redirect to vendored copies.
"""
# jaraco is a namespace package, but for data to be discovered,
# such as in jaraco.txt, it must be a regular package.
pkg_files.joinpath('__init__.py').write_text('')
for file in pkg_files.glob('*.py'):
text = file.read_text()
text = re.sub(r' (more_itertools)', rf' {new_root}.\1', text)
Expand Down

0 comments on commit 1290719

Please sign in to comment.