changeset 2716:03e4091531be

wikiutil: some PEP8 fixes
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 23 Aug 2007 23:55:38 +0200
parents a17289d3a174
children 3435f31e037e
files MoinMoin/wikiutil.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Thu Aug 23 23:47:31 2007 +0200
+++ b/MoinMoin/wikiutil.py	Thu Aug 23 23:55:38 2007 +0200
@@ -255,8 +255,8 @@
         @return: cleaned text
     """
     # we only have input fields with max 200 chars, but spammers send us more
-    l = len(text)
-    if l == 0 or l > max_len:
+    length = len(text)
+    if length == 0 or length > max_len:
         return u''
     else:
         return text.translate(config.clean_input_translation_map)
@@ -843,7 +843,7 @@
         while context and pagename.startswith(PARENT_PREFIX):
             context = '/'.join(context.split('/')[:-1])
             pagename = pagename[PARENT_PREFIX_LEN:]
-        pagename = '/'.join(filter(None, [ context, pagename, ]))
+        pagename = '/'.join(filter(None, [context, pagename, ]))
     elif pagename.startswith(CHILD_PREFIX):
         if context:
             pagename = context + '/' + pagename[CHILD_PREFIX_LEN:]
@@ -2250,3 +2250,4 @@
         pi.append((verb.lower(), args.strip()))
 
     return pi, body
+