commit | 38752819807917d3b81432a02cf7a97d316ed79c | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Tue Jan 21 14:19:21 2003 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Tue Jan 21 14:19:21 2003 +0000 |
tree | a640d20c7f09ec5ada295982617aff9dee5aa75e | |
parent | 08a7a0d60becee3eaf5faa2340cc40f1820043b3 [diff] [blame] |
Fix example in a docstring to not use 'file' as a variable name
diff --git a/Lib/lib-tk/FileDialog.py b/Lib/lib-tk/FileDialog.py index bd62c6d..323dc29 100644 --- a/Lib/lib-tk/FileDialog.py +++ b/Lib/lib-tk/FileDialog.py
@@ -25,8 +25,8 @@ Usage: d = FileDialog(master) - file = d.go(dir_or_file, pattern, default, key) - if file is None: ...canceled... + fname = d.go(dir_or_file, pattern, default, key) + if fname is None: ...canceled... else: ...open file... All arguments to go() are optional.