diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-01-21 14:19:21 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-01-21 14:19:21 (GMT) |
commit | 38752819807917d3b81432a02cf7a97d316ed79c (patch) | |
tree | a640d20c7f09ec5ada295982617aff9dee5aa75e /Lib/lib-tk | |
parent | 08a7a0d60becee3eaf5faa2340cc40f1820043b3 (diff) | |
download | cpython-38752819807917d3b81432a02cf7a97d316ed79c.zip cpython-38752819807917d3b81432a02cf7a97d316ed79c.tar.gz cpython-38752819807917d3b81432a02cf7a97d316ed79c.tar.bz2 |
Fix example in a docstring to not use 'file' as a variable name
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r-- | Lib/lib-tk/FileDialog.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ class FileDialog: 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. |