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

Fix pytest warning: Regex likes raw strings #145

Merged
merged 1 commit into from
Jan 30, 2022

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jan 29, 2022

Fixes pytest warning:

=============================== warnings summary ===============================
pynfe/processamento/serializacao.py:1029
  /home/runner/work/PyNFe/PyNFe/pynfe/processamento/serializacao.py:1029: DeprecationWarning: invalid escape sequence '\d'
    lista_dia = re.findall("-\d{2}", str(data))

Fourth paragraph of https://docs.python.org/pt-br/3/library/re.html

Fixes pytest warning:
```

=============================== warnings summary ===============================
88
pynfe/processamento/serializacao.py:1029
89
  /home/runner/work/PyNFe/PyNFe/pynfe/processamento/serializacao.py:1029: DeprecationWarning: invalid escape sequence '\d'
90
    lista_dia = re.findall("-\d{2}", str(data))
```
@juniortada juniortada merged commit 63b6c7f into TadaSoftware:master Jan 30, 2022
@cclauss cclauss deleted the patch-1 branch January 31, 2022 00:21
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.

3 participants