AnswerDotAI / AnswerDotAI/ghapi

SyntaxWarning: invalid escape sequence

Open
#168 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
685
Forks
70
Avg merge
1m
Merged PRs (30d)
2

Description

Getting these warnings with python 3.12

```
/Users/nils/Library/Caches/pypoetry/virtualenvs/vrex-cli-9LieaW4p-py3.12/lib/python3.12/site-packages/fastcore/script.py:32: SyntaxWarning: invalid escape sequence '\.'
x = re.sub("(enum |class|function|__main__\.|\ at.*)", '', x)
/Users/nils/Library/Caches/pypoetry/virtualenvs/vrex-cli-9LieaW4p-py3.12/lib/python3.12/site-packages/fastcore/script.py:33: SyntaxWarning: invalid escape sequence '\ '
x = re.sub("(<|>|'|\ )", '', x) # spl characters
/Users/nils/Library/Caches/pypoetry/virtualenvs/vrex-cli-9LieaW4p-py3.12/lib/python3.12/site-packages/fastcore/docments.py:62: SyntaxWarning: invalid escape sequence '\s'
_clean_re = re.compile('^\s*#(.*)\s*$')
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.