Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf794cc

Browse filesBrowse files
committed
str.format() doesn't work on python 2.6
1 parent ad88409 commit cf794cc
Copy full SHA for cf794cc

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed

‎lib/matplotlib/backends/backend_gtk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk.py
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def leave_notify_event(self, widget, event):
326326

327327
def enter_notify_event(self, widget, event):
328328
x, y, state = event.window.get_pointer()
329-
FigureCanvasBase.enter_notify_event(self, event, xy=(x,y))
329+
FigureCanvasBase.enter_notify_event(self, event, xy=(x, y))
330330

331331
def _get_key(self, event):
332332
if event.keyval in self.keyvald:
@@ -339,9 +339,9 @@ def _get_key(self, event):
339339
for key_mask, prefix in (
340340
[gdk.MOD4_MASK, 'super'],
341341
[gdk.MOD1_MASK, 'alt'],
342-
[gdk.CONTROL_MASK, 'ctrl'],):
342+
[gdk.CONTROL_MASK, 'ctrl'], ):
343343
if event.state & key_mask:
344-
key = '{}+{}'.format(prefix, key)
344+
key = '%s+%s' % (prefix, key)
345345

346346
return key
347347

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

361361
return False # finish event propagation?
362362

363-
364363
def draw(self):
365364
# Note: FigureCanvasBase.draw() is inconveniently named as it clashes
366365
# with the deprecated gtk.Widget.draw()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.