changeset 71:efe399a0375b

cleanup some imports, fix pep8 issue
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Mar 2011 23:18:35 +0100
parents 4a8898e001fc
children f8976b828425
files MoinMoin/__init__.py MoinMoin/config/default.py MoinMoin/items/__init__.py MoinMoin/script/maint/create_item.py MoinMoin/themes/__init__.py
diffstat 5 files changed, 5 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/__init__.py	Sat Mar 05 21:55:44 2011 +0100
+++ b/MoinMoin/__init__.py	Sat Mar 05 23:18:35 2011 +0100
@@ -7,11 +7,9 @@
 """
 
 
-import os
-import sys
-
 project = "MoinMoin"
 
+import sys
 if sys.hexversion < 0x2060000:
     sys.exit("%s requires Python 2.6 or greater.\n" % project)
 
--- a/MoinMoin/config/default.py	Sat Mar 05 21:55:44 2011 +0100
+++ b/MoinMoin/config/default.py	Sat Mar 05 23:18:35 2011 +0100
@@ -12,7 +12,6 @@
 
 import re
 import os
-import sys
 
 from babel import parse_locale
 
@@ -20,11 +19,9 @@
 logging = log.getLogger(__name__)
 
 from MoinMoin.i18n import _, L_, N_
-from MoinMoin import config, error, util
+from MoinMoin import config, error
 from MoinMoin import datastruct
 from MoinMoin.auth import MoinAuth
-import MoinMoin.auth as authmodule
-from MoinMoin.security import AccessControlList
 from MoinMoin.util import plugins
 
 
--- a/MoinMoin/items/__init__.py	Sat Mar 05 21:55:44 2011 +0100
+++ b/MoinMoin/items/__init__.py	Sat Mar 05 23:18:35 2011 +0100
@@ -15,7 +15,7 @@
 """
 
 
-import os, re, time, datetime, shutil, base64
+import os, re, time, datetime, base64
 import tarfile
 import zipfile
 import tempfile
--- a/MoinMoin/script/maint/create_item.py	Sat Mar 05 21:55:44 2011 +0100
+++ b/MoinMoin/script/maint/create_item.py	Sat Mar 05 23:18:35 2011 +0100
@@ -2,9 +2,9 @@
 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 
 """
-    MoinMoin - creates an item 
+    MoinMoin - creates an item
 
-    This script creates a new revision of an item
+    This script creates a new revision of an item.
 """
 
 
--- a/MoinMoin/themes/__init__.py	Sat Mar 05 21:55:44 2011 +0100
+++ b/MoinMoin/themes/__init__.py	Sat Mar 05 23:18:35 2011 +0100
@@ -8,7 +8,6 @@
 """
 
 
-import os
 import urllib
 
 from flask import current_app as app