summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/filedialog.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-11-04 07:29:17 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-11-04 07:29:17 (GMT)
commit54540ec917a47c39328e87b1f4ddf83adeca2f5c (patch)
treed4cef1dbff88af3933fd0cb4572d272e77a9b9e7 /Lib/tkinter/filedialog.py
parentc53ae589548e37c4bd86f03294a27667978a51f8 (diff)
downloadcpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.zip
cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.tar.gz
cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.tar.bz2
Remove redundant imports.
Diffstat (limited to 'Lib/tkinter/filedialog.py')
-rw-r--r--Lib/tkinter/filedialog.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/tkinter/filedialog.py b/Lib/tkinter/filedialog.py
index 98d2d5c..3ffb252 100644
--- a/Lib/tkinter/filedialog.py
+++ b/Lib/tkinter/filedialog.py
@@ -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