From: Andrew M. Kuchling Date: Tue, 21 Jan 2003 14:19:21 +0000 (+0000) Subject: Fix example in a docstring to not use 'file' as a variable name X-Git-Tag: v2.3c1~2381 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38752819807917d3b81432a02cf7a97d316ed79c;p=thirdparty%2FPython%2Fcpython.git 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 bd62c6d2a21b..323dc29704b9 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.