Remove redundant imports.

This commit is contained in:
Florent Xicluna 2011-11-04 08:29:17 +01:00
parent c53ae58954
commit 54540ec917
7 changed files with 6 additions and 12 deletions

View file

@ -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