Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix some doctest issues #11616

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

Merged
merged 3 commits into from
Jul 10, 2018
Merged

Fix some doctest issues #11616

merged 3 commits into from
Jul 10, 2018

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jul 10, 2018

PR Summary

Fix the syntax of wrapped lines, and make sure they are correctly aligned.

PR Checklist

  • [N/A] Has Pytest style unit tests
  • Code is PEP 8 compliant
  • [N/A] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -178,8 +178,8 @@ class Dvi(object):
simple way to extract text without trying to detect whitespace::

>>> with matplotlib.dviread.Dvi('input.dvi', 72) as dvi:
>>> for page in dvi:
>>> print(''.join(chr(t.glyph) for t in page.text))
... for page in dvi:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning, treated as error:
/home/circleci/project/lib/matplotlib/dviread.py:docstring of matplotlib.dviread.Dvi:11:Inconsistent literal block quoting.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed now.

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone can merge after CI pass.

@tacaswell tacaswell added this to the v3.0 milestone Jul 10, 2018
@tacaswell tacaswell merged commit dfb8936 into matplotlib:master Jul 10, 2018
@QuLogic QuLogic deleted the doctest-fixes branch July 10, 2018 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants