From 38752819807917d3b81432a02cf7a97d316ed79c Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Tue, 21 Jan 2003 14:19:21 +0000 Subject: [PATCH] Fix example in a docstring to not use 'file' as a variable name --- Lib/lib-tk/FileDialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/lib-tk/FileDialog.py b/Lib/lib-tk/FileDialog.py index bd62c6d2a21..323dc29704b 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.