changeset 2625:aa093f88e018

remove redundant parentheses
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 08 Jun 2014 15:38:38 +0200
parents fa6943d4dac7
children 1663ebfcb4c4
files MoinMoin/apps/frontend/views.py MoinMoin/apps/misc/views.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sun Jun 08 15:34:29 2014 +0200
+++ b/MoinMoin/apps/frontend/views.py	Sun Jun 08 15:38:38 2014 +0200
@@ -198,7 +198,7 @@
                     ITEMLINKS, ITEMTRANSCLUSIONS, 'refs', ]:
             value = lookup_form[key].value
             if value:
-                if (key in [ITEMID, REVID, USERID, ] and len(value) < crypto.UUID_LEN or key in [NAME_EXACT]):
+                if key in [ITEMID, REVID, USERID, ] and len(value) < crypto.UUID_LEN or key in [NAME_EXACT]:
                     term = Prefix(key, value)
                 elif key == 'refs':
                     term = Or([Term(ITEMLINKS, value), Term(ITEMTRANSCLUSIONS, value)])
@@ -1324,7 +1324,7 @@
     success = False
     if u and token and u.validate_recovery_token(token):
         unvalidated_email = u.profile[EMAIL_UNVALIDATED]
-        if (app.cfg.user_email_unique and user.search_users(**{EMAIL: unvalidated_email})):
+        if app.cfg.user_email_unique and user.search_users(**{EMAIL: unvalidated_email}):
             msg = _('This email is already in use.')
         else:
             if u.disabled:
--- a/MoinMoin/apps/misc/views.py	Sun Jun 08 15:34:29 2014 +0200
+++ b/MoinMoin/apps/misc/views.py	Sun Jun 08 15:38:38 2014 +0200
@@ -37,7 +37,7 @@
         # these are the content items:
         changefreq = "daily"
         priority = "0.5"
-        sitemap += [((fqname, format_timestamp(mtime), changefreq, priority)) for fqname in fqnames]
+        sitemap += [(fqname, format_timestamp(mtime), changefreq, priority) for fqname in fqnames]
     # add entries for root urls
     root_mapping = [(namespace, app.cfg.root_mapping.get(namespace, app.cfg.default_root)) for namespace, _ in app.cfg.namespace_mapping]
     query = Or([And([Term(NAME_EXACT, root), Term(NAMESPACE, namespace)]) for namespace, root in root_mapping])