Deprecation warning due to invalid escape sequences in Python 3.7 #531

Closed
opened 2020-04-11 22:22:46 -07:00 by tirkarthi · 0 comments
tirkarthi commented 2020-04-11 22:22:46 -07:00 (Migrated from github.com)

Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals.

find . -iname '*.py' | grep -Ev 'example|utl|samples' | xargs -P 4 -I{} python3.8 -Wall -m py_compile {} 
./twython/streaming/types.py:38: DeprecationWarning: invalid escape sequence \*
  """Stream statuses/filter
./twython/streaming/types.py:50: DeprecationWarning: invalid escape sequence \*
  """Stream statuses/sample
./twython/streaming/types.py:62: DeprecationWarning: invalid escape sequence \*
  """Stream statuses/firehose
./twython/streaming/types.py:74: DeprecationWarning: invalid escape sequence \*
  """Set/update statuses/filter
./twython/api.py:433: DeprecationWarning: invalid escape sequence \*
  """Construct a Twitter API url, encoded, with parameters
./twython/api.py:472: DeprecationWarning: invalid escape sequence \*
  """Returns a generator for results that match a specified query.
Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. ``` find . -iname '*.py' | grep -Ev 'example|utl|samples' | xargs -P 4 -I{} python3.8 -Wall -m py_compile {} ./twython/streaming/types.py:38: DeprecationWarning: invalid escape sequence \* """Stream statuses/filter ./twython/streaming/types.py:50: DeprecationWarning: invalid escape sequence \* """Stream statuses/sample ./twython/streaming/types.py:62: DeprecationWarning: invalid escape sequence \* """Stream statuses/firehose ./twython/streaming/types.py:74: DeprecationWarning: invalid escape sequence \* """Set/update statuses/filter ./twython/api.py:433: DeprecationWarning: invalid escape sequence \* """Construct a Twitter API url, encoded, with parameters ./twython/api.py:472: DeprecationWarning: invalid escape sequence \* """Returns a generator for results that match a specified query. ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#531
No description provided.