changeset 7420:eef12ab01f51

filter output of xpot. decorators not recognized Apparently python decorators are not recognized by xpot. So it throws a bunch of errors like ../roundup/rate_limit.py:15: Unexpected in Python source: #64 `@' Remove them with sed so we don't miss real errors.
author John Rouillard <rouilj@ieee.org>
date Thu, 25 May 2023 20:07:27 -0400
parents dce8f7799ecb
children c23967387bf6
files locale/Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/locale/Makefile	Thu May 25 19:58:36 2023 -0400
+++ b/locale/Makefile	Thu May 25 20:07:27 2023 -0400
@@ -40,7 +40,7 @@
 	done
 
 template:
-	${XPOT} -n -o $(TEMPLATE) $(SOURCES)
+	${XPOT} -n -o $(TEMPLATE) $(SOURCES) 2>&1 | sed -e "/: Unexpected in Python source: #64 \`@'/d"
 
 	${RUN_PYTHON} ../roundup/cgi/TAL/talgettext.py -u $(TEMPLATE) \
 	  ../share/roundup/templates/classic/html/*.html \

Roundup Issue Tracker: http://roundup-tracker.org/