changeset 1176:3d697fee51ed

whitespace only change
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 13 Aug 2006 22:35:48 +0200
parents 3fe0b17ce271
children ad642b8d5fec
files MoinMoin/util/__init__.py
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/__init__.py	Sun Aug 13 22:22:16 2006 +0200
+++ b/MoinMoin/util/__init__.py	Sun Aug 13 22:35:48 2006 +0200
@@ -14,9 +14,9 @@
 #############################################################################
 
 g_xmlIllegalCharPattern = re.compile('[\x01-\x08\x0B-\x0D\x0E-\x1F\x80-\xFF]')
-g_undoUtf8Pattern       = re.compile('\xC2([^\xC2])')
-g_cdataCharPattern      = re.compile('[&<\'\"]')
-g_textCharPattern       = re.compile('[&<]')
+g_undoUtf8Pattern = re.compile('\xC2([^\xC2])')
+g_cdataCharPattern = re.compile('[&<\'\"]')
+g_textCharPattern = re.compile('[&<]')
 g_charToEntity = {
     '&': '&amp;',
     '<': '&lt;',
@@ -60,11 +60,11 @@
     for i in range(len(numbers)-1):
         if pattern[-1] == ',':
             pattern = pattern + str(numbers[i])
-            if numbers[i]+1 == numbers[i+1]:
+            if numbers[i] + 1 == numbers[i+1]:
                 pattern = pattern + '-'
             else:
                 pattern = pattern + ','
-        elif numbers[i]+1 != numbers[i+1]:
+        elif numbers[i] + 1 != numbers[i+1]:
             pattern = pattern + str(numbers[i]) + ','
 
     if pattern[-1] in ',-':
@@ -116,3 +116,4 @@
 def random_string(length):
     chars = ''.join([chr(random.randint(0, 255)) for x in xrange(length)])
     return chars
+