changeset 4626:25532a36f2b5

AttachFile: reordered imports
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 02 Mar 2009 02:09:10 +0100
parents 1c60c378eb1a
children c404a1295318
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sun Mar 01 23:13:49 2009 +0100
+++ b/MoinMoin/action/AttachFile.py	Mon Mar 02 02:09:10 2009 +0100
@@ -27,13 +27,17 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-import os, time, zipfile, mimetypes, errno, datetime
+import os, time, zipfile, errno, datetime
 from StringIO import StringIO
 
 from MoinMoin import log
 logging = log.getLogger(__name__)
 
-from MoinMoin import config, wikiutil, packages
+# keep both imports below as they are, order is important:
+from MoinMoin import wikiutil
+import mimetypes
+
+from MoinMoin import config, packages
 from MoinMoin.Page import Page
 from MoinMoin.util import filesys, timefuncs
 from MoinMoin.security.textcha import TextCha