Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

DeprecationWarning: invalid escape sequence \g #176

Open
d9pouces opened this issue Jan 23, 2021 · 0 comments
Open

DeprecationWarning: invalid escape sequence \g #176

d9pouces opened this issue Jan 23, 2021 · 0 comments

Comments

@d9pouces
Copy link

There are still invalid escape sequences in tweets.py, that could raise errors in a future Python version:

twitter_scraper/modules/tweets.py:161: DeprecationWarning: invalid escape sequence \g
tweet["text"] = re.sub(r"(\S)http", "\g<1> http", tweet["text"], 1)

twitter_scraper/modules/tweets.py:163: DeprecationWarning: invalid escape sequence \g
r"(\S)pic.twitter", "\g<1> pic.twitter", tweet["text"], 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant