summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/FileDialog.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-19 16:53:45 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-19 16:53:45 (GMT)
commite014a13f03abc0111591565fc0b669dd1cff0958 (patch)
treee3541605572ea5dca2894f7062033397fbe4bf91 /Lib/lib-tk/FileDialog.py
parent6e23e3796d8b1794279c84757e253aba53c9144f (diff)
downloadcpython-e014a13f03abc0111591565fc0b669dd1cff0958.zip
cpython-e014a13f03abc0111591565fc0b669dd1cff0958.tar.gz
cpython-e014a13f03abc0111591565fc0b669dd1cff0958.tar.bz2
Couple more has_keys() going...
Diffstat (limited to 'Lib/lib-tk/FileDialog.py')
-rw-r--r--Lib/lib-tk/FileDialog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/FileDialog.py b/Lib/lib-tk/FileDialog.py
index b08d3a8..06ce2b9 100644
--- a/Lib/lib-tk/FileDialog.py
+++ b/Lib/lib-tk/FileDialog.py
@@ -107,7 +107,7 @@ class FileDialog:
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)