changeset 2829:f6ee7dd9f400

minor python style fixes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 20 Oct 2014 19:47:37 +0200
parents 444633f11059
children b55ace92b0a9
files MoinMoin/apps/admin/views.py MoinMoin/util/paramparser.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Sun Oct 19 02:52:34 2014 +0200
+++ b/MoinMoin/apps/admin/views.py	Mon Oct 20 19:47:37 2014 +0200
@@ -254,7 +254,7 @@
 
 def _trashed(namespace):
     q = And([Term(WIKINAME, app.cfg.interwikiname), Term(TRASH, True)])
-    if not namespace == NAMESPACE_ALL:
+    if namespace != NAMESPACE_ALL:
         q = And([q, Term(NAMESPACE, namespace), ])
     trashedEntry = namedtuple('trashedEntry', 'fqname oldname revid mtime comment editor')
     results = []
--- a/MoinMoin/util/paramparser.py	Sun Oct 19 02:52:34 2014 +0200
+++ b/MoinMoin/util/paramparser.py	Mon Oct 20 19:47:37 2014 +0200
@@ -223,7 +223,7 @@
             if not bracketstack:
                 raise BracketUnexpectedCloseError(char)
             expected, oldresult = bracketstack[-1]
-            if not expected == char:
+            if expected != char:
                 raise BracketUnexpectedCloseError(char)
             del bracketstack[-1]
             oldresult.append(result)