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 19d6dba

Browse filesBrowse files
committed
Merge pull request #1590 from cgohlke/patch-1
Positional argument specifiers are required by Python 2.6
2 parents ccb923e + 9ed51ec commit 19d6dba
Copy full SHA for 19d6dba

File tree

Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed

‎lib/matplotlib/backends/backend_gtk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def _get_key(self, event):
341341
[gdk.MOD1_MASK, 'alt'],
342342
[gdk.CONTROL_MASK, 'ctrl'],):
343343
if event.state & key_mask:
344-
key = '{}+{}'.format(prefix, key)
344+
key = '{0}+{1}'.format(prefix, key)
345345

346346
return key
347347

‎lib/matplotlib/backends/backend_gtk3.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk3.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _get_key(self, event):
271271
]
272272
for key_mask, prefix in modifiers:
273273
if event.state & key_mask:
274-
key = '{}+{}'.format(prefix, key)
274+
key = '{0}+{1}'.format(prefix, key)
275275

276276
return key
277277

‎lib/matplotlib/backends/backend_qt4.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt4.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def _get_key( self, event ):
337337
# prepend the ctrl, alt, super keys if appropriate (sorted in that order)
338338
for modifier, prefix, Qt_key in self._modifier_keys:
339339
if event.key() != Qt_key and int(event.modifiers()) & modifier == modifier:
340-
key = u'{}+{}'.format(prefix, key)
340+
key = u'{0}+{1}'.format(prefix, key)
341341

342342
return key
343343

‎lib/matplotlib/backends/backend_tkagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_tkagg.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _get_key(self, event):
467467
# note, shift is not added to the keys as this is already accounted for
468468
for bitmask, prefix, key_name in modifiers:
469469
if event.state & (1 << bitmask) and key_name not in key:
470-
key = '{}+{}'.format(prefix, key)
470+
key = '{0}+{1}'.format(prefix, key)
471471

472472
return key
473473

‎lib/matplotlib/backends/backend_wx.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ def _get_key(self, evt):
12541254
[evt.AltDown, 'alt'],
12551255
[evt.ControlDown, 'ctrl'], ):
12561256
if meth():
1257-
key = '{}+{}'.format(prefix, key)
1257+
key = '{0}+{1}'.format(prefix, key)
12581258

12591259
return key
12601260

0 commit comments

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