PluginPrintRemover.py

changeset 14
039f86a49919
parent 11
cd82d92e927d
child 15
2096afa1756f
--- a/PluginPrintRemover.py	Sat Dec 28 19:41:07 2013 +0100
+++ b/PluginPrintRemover.py	Tue Dec 31 20:56:16 2013 +0100
@@ -263,7 +263,7 @@
         
         text = editor.text()
         newText = "".join([
-            line for line in text.splitlines(keepends=True)
+            line for line in text.splitlines(True)
             if not line.lstrip().startswith(pattern) or
             "__NO_REMOVE__" in line
         ])

eric ide

mercurial