[Inteproxy-commits] r326 - in branches/streaming: . inteproxy

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Dec 23 18:56:09 CET 2011


Author: teichmann
Date: 2011-12-23 18:56:06 +0100 (Fri, 23 Dec 2011)
New Revision: 326

Modified:
   branches/streaming/ChangeLog
   branches/streaming/inteproxy/proxycore.py
Log:
Fixed indentation (c&p mistake)

Modified: branches/streaming/ChangeLog
===================================================================
--- branches/streaming/ChangeLog	2011-12-23 17:49:22 UTC (rev 325)
+++ branches/streaming/ChangeLog	2011-12-23 17:56:06 UTC (rev 326)
@@ -1,5 +1,10 @@
 2011-12-23	Sascha L. Teichmann	<sascha.teichmann at intevation.de>
 
+	* inteproxy/proxycore.py(ransfer_chunked_rewrite): Fixed 
+	  indentation problem (c&p mistake).
+
+2011-12-23	Sascha L. Teichmann	<sascha.teichmann at intevation.de>
+
 	* inteproxy/proxycore.py(transfer_chunked_rewrite): Use rfind()
 	  instead of find() to break input into lesser fragments. This 
 	  improves the performance a lot!

Modified: branches/streaming/inteproxy/proxycore.py
===================================================================
--- branches/streaming/inteproxy/proxycore.py	2011-12-23 17:49:22 UTC (rev 325)
+++ branches/streaming/inteproxy/proxycore.py	2011-12-23 17:56:06 UTC (rev 326)
@@ -365,18 +365,18 @@
             while True:
                 idx = chunk.rfind(separator, pos)
 
-            if idx > 0:
-                rest = chunk[pos:idx]
-                append(rest)
-                rewritten = rewrite(''.join(data))
-                del data[:]
-                append(separator)
-                write(rewritten)
-                rewritten = None
-                pos = idx+1
-            else:
-                append(chunk[pos:] if pos else chunk)
-                break
+                if idx > 0:
+                    rest = chunk[pos:idx]
+                    append(rest)
+                    rewritten = rewrite(''.join(data))
+                    del data[:]
+                    append(separator)
+                    write(rewritten)
+                    rewritten = None
+                    pos = idx+1
+                else:
+                    append(chunk[pos:] if pos else chunk)
+                    break
 
         rewritten = rewrite(''.join(data))
         write(rewritten)



More information about the Inteproxy-commits mailing list