Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use raw string literals for docstrings with escapes #11336

Merged

Conversation

timhoffm
Copy link
Member

PR Summary

Fixes #11335.

See PEP-0257:

Use r"""raw triple double quotes""" if you use any backslashes in your docstrings.

@jklymak
Copy link
Member

jklymak commented May 29, 2018

That definitely fixes it on the other machine. Confused why the two machines are different, but I guess thats beside the point.

@jklymak jklymak merged commit 84a03e1 into matplotlib:master May 29, 2018
@timhoffm timhoffm deleted the raw-strings-for-docstrings-with-escape branch May 29, 2018 20:35
@tacaswell tacaswell added this to the v2.2.3 milestone May 30, 2018
@tacaswell
Copy link
Member

@meeseeksdev safe-backport to v2.2.x

@tacaswell
Copy link
Member

@meeseeksdev backport to v2.2.x

@lumberbot-app
Copy link

lumberbot-app bot commented May 30, 2018

There seem to be a conflict, please backport manually

tacaswell pushed a commit to tacaswell/matplotlib that referenced this pull request Aug 4, 2018
…strings-with-escape

Use raw string literals for docstrings with escapes

Conflicts:
	lib/matplotlib/artist.py
          - reject py2 incompatible changes
	lib/matplotlib/axes/_axes.py
         - also backports some documentation changes
@tacaswell
Copy link
Member

backported to v2.2.x as fa5b1e1

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

Successfully merging this pull request may close these issues.

None yet

3 participants