watson-developer-cloud / python-sdk

:snake: Client library to use the IBM Watson services in Python and available in pip as watson-developer-cloud
https://pypi.org/project/ibm-watson/
Apache License 2.0
1.46k stars 828 forks source link

Deprecation warning due to invalid escape sequences #745

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago

Overview

Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/

How to reproduce

find . -iname '*.py' | grep -Ev 'test.py' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./ibm_watson/visual_recognition_v3.py:197: DeprecationWarning: invalid escape sequence \ 
  """
./ibm_watson/visual_recognition_v3.py:359: DeprecationWarning: invalid escape sequence \ 
  """

Additional information:

mamoonraja commented 4 years ago

@tirkarthi Thanks a lot for opening the issue, we will take a look at the error message.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.