summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-18 18:00:24 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-18 18:00:24 (GMT)
commit92155ee65a8a806eeace03a4f8afeaf33bb27b82 (patch)
tree5343494a9a325df1ab59e3f71e90f8489c516354
parent67a950b89ad36195c818a778930156424be37912 (diff)
downloadpython-sievelib-92155ee65a8a806eeace03a4f8afeaf33bb27b82.tar.gz
Undo some errors in removing print statements
-rw-r--r--sievelib/commands.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sievelib/commands.py b/sievelib/commands.py
index 9b237c6..74e83a0 100644
--- a/sievelib/commands.py
+++ b/sievelib/commands.py
@@ -170,11 +170,17 @@ class Command(object):
if not self.accept_children:
if self.get_type() != "test":
- return
+ print >>target, ";"
+ return
+
if self.get_type() != "control":
return
+
+ print >>target, " {"
+
for ch in self.children:
ch.tosieve(indentlevel + 4, target=target)
+
self.__print("}", indentlevel, target=target)
def __print(self, data, indentlevel, nocr=False, target=sys.stdout):
@@ -182,6 +188,7 @@ class Command(object):
if nocr:
target.write(text)
else:
+ print >>target, text
def __get_arg_type(self, arg):
"""