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

removing items from the call to six.iteritems #2553

Merged
merged 1 commit into from Oct 29, 2013

Conversation

fariza
Copy link
Member

@fariza fariza commented Oct 28, 2013

When using the GTK backend, and calling the save dialog (click on save button)

 Traceback (most recent call last):
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/backends/backend_gtk.py", line 752, in save_figure
    chooser = self.get_filechooser()
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/backends/backend_gtk.py", line 747, in get_filechooser
    default_filetype=self.canvas.get_default_filetype())
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/backends/backend_gtk.py", line 835, in __init__
    self.sorted_filetypes = list(six.iteritems(filetypes.items))
  File "/usr/lib/python2.7/dist-packages/six.py", line 254, in iteritems
    return iter(getattr(d, _iteritems)())
AttributeError: 'builtin_function_or_method' object has no attribute 'iteritems'

Removing the items from the filetypes fixes the problem

@tacaswell
Copy link
Member

👍

pelson added a commit that referenced this pull request Oct 29, 2013
removing items from the call to six.iteritems
@pelson pelson merged commit 4cd888e into matplotlib:master Oct 29, 2013
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