Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make regex for Python bytecode more selective #65

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Conversation

abencz
Copy link
Contributor

@abencz abencz commented Jun 9, 2020

Fix regex to match only files ending in ".py[co]" and not files ending
in "py[co]".

Fix regex to match only files ending in ".py[co]" and not files ending
in "py[co]".
@abencz
Copy link
Contributor Author

abencz commented Jun 9, 2020

This was breaking mypy in the devel folder because files like "venv/lib64/python3.7/site-packages/mypy-0.780.dist-info/top_level.txt:3220aef3144e83d3e26a__mypyc" were being deleted during relocation.

@abencz abencz requested a review from paulbovbel June 9, 2020 15:56
@@ -32,7 +32,7 @@
from . import run_command, relocate
from .collect_requirements import collect_requirements

_BYTECODE_REGEX = re.compile('.*.py[co]')
_BYTECODE_REGEX = re.compile('.*\.py[co]')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed that escape, rookie mistake, thanks!

@abencz abencz merged commit 5f4be84 into master Jun 9, 2020
@abencz abencz deleted the fix-bytecode-regex branch June 9, 2020 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants