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

str.format() doesn't work on python 2.6 #1544

Merged
merged 1 commit into from Dec 3, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/matplotlib/backends/backend_gtk.py
Expand Up @@ -326,7 +326,7 @@ def leave_notify_event(self, widget, event):

def enter_notify_event(self, widget, event):
x, y, state = event.window.get_pointer()
FigureCanvasBase.enter_notify_event(self, event, xy=(x,y))
FigureCanvasBase.enter_notify_event(self, event, xy=(x, y))

def _get_key(self, event):
if event.keyval in self.keyvald:
Expand All @@ -339,9 +339,9 @@ def _get_key(self, event):
for key_mask, prefix in (
[gdk.MOD4_MASK, 'super'],
[gdk.MOD1_MASK, 'alt'],
[gdk.CONTROL_MASK, 'ctrl'],):
[gdk.CONTROL_MASK, 'ctrl'], ):
if event.state & key_mask:
key = '{}+{}'.format(prefix, key)
key = '%s+%s' % (prefix, key)

return key

Expand All @@ -360,7 +360,6 @@ def configure_event(self, widget, event):

return False # finish event propagation?


def draw(self):
# Note: FigureCanvasBase.draw() is inconveniently named as it clashes
# with the deprecated gtk.Widget.draw()
Expand Down