Skip to content

py3ify table.py and correct some docstrings #10862

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 1 commit into from
Mar 23, 2018

Conversation

timhoffm
Copy link
Member

PR Summary

  • Basically remove six, and future-import.
  • Clean up some docstrings on the way.

@@ -461,8 +456,7 @@ def auto_set_column_width(self, col):
self.stale = True

def _auto_set_column_width(self, col, renderer):
""" Automagically set width for column.
"""
"""Automatically set width for column."""
Copy link
Contributor

Choose a reason for hiding this comment

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

I think automagically is fine here, we're allowed some humor for private docstrings at least...

Copy link
Member Author

@timhoffm timhoffm Mar 22, 2018

Choose a reason for hiding this comment

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

Not sure it was intended, though. All other similar methods around this are using "automatically" and 'g' and 't' are adjacent on the keyboard, so I assume this is just a coincidentally funny typo. If you know this is intentional, I'm happy to revert the change.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really care tbh, changing is fine.

'Move all the artists by ox,oy (axes coords)'

for c in six.itervalues(self._cells):
"""Move all the artists by ox,oy (axes coords)."""
Copy link
Contributor

Choose a reason for hiding this comment

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

space after comma

@jklymak jklymak merged commit b6acd04 into matplotlib:master Mar 23, 2018
@QuLogic QuLogic added this to the v3.0 milestone Mar 24, 2018
@QuLogic QuLogic added the Py3k label Mar 24, 2018
@timhoffm timhoffm deleted the py3ify-table branch March 25, 2018 11:29
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.

4 participants