VingtCinq / python-mailchimp

Python client for v3 of MailChimp API
MIT License
463 stars 131 forks source link

fix DeprecationWarning/SyntaxError due to invalid escape sequences #216

Closed niklasb closed 1 year ago

niklasb commented 4 years ago

Python 3.X (I believe it was 3.6) deprecated the use of invalid escape sequences. For example, with -Werror:

.tox/env/lib/python3.8/site-packages/mailchimp3/baseapi.py:8: in <module>
    from mailchimp3.helpers import merge_results
E     File "/app/.tox/env/lib/python3.8/site-packages/mailchimp3/helpers.py", line 81
E       u"(?:\S+(?::\S*)?@)?"
E       ^
E   SyntaxError: invalid escape sequence \S

this fixes the string literals

MartinThoma commented 3 years ago

@charlesthk Is anything missing or unclear for this PR?

stephenross commented 3 years ago

@MartinThoma Please update the various other files to bump the version (both README files and the setup file)

martin-thoma commented 2 years ago

@stephenross Ok: https://github.com/VingtCinq/python-mailchimp/pull/241

martin-thoma commented 2 years ago

@niklasb It was merged https://github.com/VingtCinq/python-mailchimp/pull/241 :tada: