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

Regular expression code used without explicitly importing the re module. #145

Closed
wants to merge 1 commit into from

Conversation

Strykar
Copy link

@Strykar Strykar commented May 28, 2024

==> Starting package()...
/usr/lib/python3.12/site-packages/mktxp/utils/utils.py:68: SyntaxWarning: invalid escape sequence '\d'
/usr/lib/python3.12/site-packages/mktxp/utils/utils.py:68: SyntaxWarning: invalid escape sequence '\d'

```
==> Starting package()...
/usr/lib/python3.12/site-packages/mktxp/utils/utils.py:68: SyntaxWarning: invalid escape sequence '\d'
/usr/lib/python3.12/site-packages/mktxp/utils/utils.py:68: SyntaxWarning: invalid escape sequence '\d'
```
Regular expression code used without explicitly importing the `re` module.
@Strykar
Copy link
Author

Strykar commented May 29, 2024

@akpw I found a similar issue when trying to package socialwifi/RouterOS-api#95 for Arch linux.
His fixes may be worth a dekko over my PR tbh.

@akpw
Copy link
Owner

akpw commented May 30, 2024

the 're' module import is actually already there, at the line 15 to be exact:
image

good catch regarding the escape sequence, that piece of code was no longer used so I remove it in the latest

@akpw akpw closed this May 30, 2024
@Strykar Strykar deleted the patch-1 branch May 30, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants