]> granicus.if.org Git - python/commitdiff
Fix example in a docstring to not use 'file' as a variable name
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 21 Jan 2003 14:19:21 +0000 (14:19 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 21 Jan 2003 14:19:21 +0000 (14:19 +0000)
Lib/lib-tk/FileDialog.py

index bd62c6d2a21bbab1a3f648386b8ab283025d9f08..323dc29704b91e73e04a02c346a2a8b506d34b1c 100644 (file)
@@ -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.