Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8663c9d

Browse files
author
James Evans
committed
Fixed a typo in _get_key. Was checking if a key existed in a dictionary in a way that does not work.
svn path=/trunk/matplotlib/; revision=7814
1 parent e5d65c7 commit 8663c9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def minumumSizeHint( self ):
176176
def _get_key( self, event ):
177177
if event.key() < 256:
178178
key = event.text().latin1()
179-
elif event.key() in self.keyvald.has_key:
179+
elif event.key() in self.keyvald:
180180
key = self.keyvald[ event.key() ]
181181
else:
182182
key = None

0 commit comments

Comments
 (0)