Revision: 1706
Author: sebastien.lelong
Date: Thu Feb 25 07:53:52 2010
Log: reset JSG errors/warnings the proper way
http://code.google.com/p/jallib/source/detail?r=1706
Modified:
/trunk/tools/jallib.py
=======================================
--- /trunk/tools/jallib.py Thu Feb 25 03:03:36 2010
+++ /trunk/tools/jallib.py Thu Feb 25 07:53:52 2010
@@ -425,6 +425,10 @@
# ...
def validate(filename):
+ global errors
+ global warnings
+ errors = []
+ warnings = []
validate_filename(filename)
# also extract line number (enumerate from 0, count from 1)
content = [(i + 1,l) for i,l in
enumerate(open(filename,"r").readlines())]
@@ -451,15 +455,11 @@
# No jallib args (yet!) for validating
# args contain jal file to validate
- global errors
- global warnings
at_least_one_failed = False
for filename in args:
validate(filename)
if report(filename):
at_least_one_failed = True
- errors = []
- warnings = []
if at_least_one_failed:
sys.exit(1)
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.