mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Fix example in a docstring to not use 'file' as a variable name
This commit is contained in:
parent
08a7a0d60b
commit
3875281980
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue