mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
replace has_key with 'in' operator
This commit is contained in:
parent
de0559998f
commit
6e3dbbdf39
29 changed files with 71 additions and 71 deletions
|
@ -409,7 +409,7 @@ class FileTreeItem(TreeItem):
|
|||
|
||||
class ScrolledCanvas:
|
||||
def __init__(self, master, **opts):
|
||||
if not opts.has_key('yscrollincrement'):
|
||||
if 'yscrollincrement' not in opts:
|
||||
opts['yscrollincrement'] = 17
|
||||
self.master = master
|
||||
self.frame = Frame(master)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue