[Zope3-checkins] CVS: Zope3/src/zope/tal - ndiff.py:1.3 talgenerator.py:1.3

Albertas Agejevas alga@codeworks.lt
Thu, 13 Mar 2003 13:49:50 -0500


Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv1411/src/zope/tal

Modified Files:
	ndiff.py talgenerator.py 
Log Message:
An unexpected raid by the Whitespace Police.

Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.



=== Zope3/src/zope/tal/ndiff.py 1.2 => 1.3 ===
--- Zope3/src/zope/tal/ndiff.py:1.2	Wed Dec 25 09:15:29 2002
+++ Zope3/src/zope/tal/ndiff.py	Thu Mar 13 13:49:19 2003
@@ -324,7 +324,7 @@
         self.matching_blocks = []
         la, lb = len(self.a), len(self.b)
         self.__helper(0, la, 0, lb, self.matching_blocks)
-        self.matching_blocks.append( (la, lb, 0) )
+        self.matching_blocks.append((la, lb, 0))
         if TRACE:
             print '*** matching blocks', self.matching_blocks
         return self.matching_blocks
@@ -407,12 +407,12 @@
             elif j < bj:
                 tag = 'insert'
             if tag:
-                answer.append( (tag, i, ai, j, bj) )
+                answer.append((tag, i, ai, j, bj))
             i, j = ai+size, bj+size
             # the list of matching blocks is terminated by a
             # sentinel with size 0
             if size:
-                answer.append( ('equal', ai, i, bj, j) )
+                answer.append(('equal', ai, i, bj, j))
         return answer
 
 # meant for dumping lines


=== Zope3/src/zope/tal/talgenerator.py 1.2 => 1.3 ===
--- Zope3/src/zope/tal/talgenerator.py:1.2	Wed Dec 25 09:15:29 2002
+++ Zope3/src/zope/tal/talgenerator.py	Thu Mar 13 13:49:19 2003
@@ -177,9 +177,9 @@
         output = program[:2]
         prev2, prev1 = output
         for item in program[2:]:
-            if (  item[0] == "beginScope"
-                  and prev1[0] == "setPosition"
-                  and prev2[0] == "rawtextColumn"):
+            if ( item[0] == "beginScope"
+                 and prev1[0] == "setPosition"
+                 and prev2[0] == "rawtextColumn"):
                 position = output.pop()[1]
                 text, column = output.pop()[1]
                 prev1 = None, None