mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove redundant imports.
This commit is contained in:
parent
c53ae58954
commit
54540ec917
7 changed files with 6 additions and 12 deletions
|
@ -306,7 +306,6 @@ class _Dialog(commondialog.Dialog):
|
|||
def _fixresult(self, widget, result):
|
||||
if result:
|
||||
# keep directory and filename until next time
|
||||
import os
|
||||
# convert Tcl path objects to strings
|
||||
try:
|
||||
result = result.string
|
||||
|
@ -333,7 +332,6 @@ class Open(_Dialog):
|
|||
# multiple results:
|
||||
result = tuple([getattr(r, "string", r) for r in result])
|
||||
if result:
|
||||
import os
|
||||
path, file = os.path.split(result[0])
|
||||
self.options["initialdir"] = path
|
||||
# don't set initialfile or filename, as we have multiple of these
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue