changeset 2926:25e0de2a082f

revert pep8 fix for ldap_login.py, must define logging before using
author RogerHaase <haaserd@gmail.com>
date Mon, 23 Feb 2015 11:11:30 -0700
parents da84a2c42a92
children df520d5f2a2c
files MoinMoin/auth/ldap_login.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/ldap_login.py	Sun Feb 22 11:21:01 2015 -0700
+++ b/MoinMoin/auth/ldap_login.py	Mon Feb 23 11:11:30 2015 -0700
@@ -18,6 +18,9 @@
 """
 
 
+from MoinMoin import log
+logging = log.getLogger(__name__)
+
 try:
     import ldap
 except ImportError as err:
@@ -28,9 +31,6 @@
 from MoinMoin.i18n import _, L_, N_
 from MoinMoin.auth import BaseAuth, CancelLogin, ContinueLogin
 
-from MoinMoin import log
-logging = log.getLogger(__name__)
-
 
 class LDAPAuth(BaseAuth):
     """ get authentication data from form, authenticate against LDAP (or Active