Mercurial > cpython-lru_cache-weakref
diff Lib/lib-tk/FileDialog.py @ 39592:0f135affabf2
Couple more has_keys() going...
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 19 Aug 2006 16:53:45 +0000 |
| parents | 22ded309648b |
| children | 4cdf21a0dbbc |
line wrap: on
line diff
--- a/Lib/lib-tk/FileDialog.py Sat Aug 19 16:17:20 2006 +0000 +++ b/Lib/lib-tk/FileDialog.py Sat Aug 19 16:53:45 2006 +0000 @@ -107,7 +107,7 @@ self.top.bind('<Alt-W>', self.cancel_command) def go(self, dir_or_file=os.curdir, pattern="*", default="", key=None): - if key and dialogstates.has_key(key): + if key and key in dialogstates: self.directory, pattern = dialogstates[key] else: dir_or_file = os.path.expanduser(dir_or_file)
