summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-26 18:04:29 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-26 18:04:29 (GMT)
commitbacf53ecdb895c76ed1440e068203b2d0f1c3240 (patch)
tree65e489325c341361cda1709c5ae2a5f86285a4ab
parent8642def968511c1b08f389d5eb351cc3fcea3274 (diff)
downloadpython-sievelib-bacf53ecdb895c76ed1440e068203b2d0f1c3240.tar.gz
Re-introduce removed print statements
-rw-r--r--sievelib/parser.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sievelib/parser.py b/sievelib/parser.py
index 74116a7..fefa3e0 100644
--- a/sievelib/parser.py
+++ b/sievelib/parser.py
@@ -105,6 +105,7 @@ class Parser(object):
if not self.debug:
return
for m in msgs:
+ print m
def __reset_parser(self):
"""Reset parser's internal variables
@@ -420,13 +421,17 @@ if __name__ == "__main__":
options, args = op.parse_args()
if not len(args):
+ print "Nothing to parse, exiting."
sys.exit(0)
for a in args:
p = Parser(debug=options.debug)
+ print "Parsing file %s... " % a,
if p.parse_file(a):
+ print "OK"
if options.verbose:
p.dump()
continue
-
+ print "ERROR"
+ print p.error