From 7d851a27f146188752e89bb026021fb8d3985395 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 17 Aug 2019 23:50:19 +1000 Subject: extmod/modure: Make regex dump-code debugging feature optional. Enabled via MICROPY_PY_URE_DEBUG, disabled by default (but enabled on unix coverage build). This is a rarely used feature that costs a lot of code (500-800 bytes flash). Debugging of regular expressions can be done offline with other tools. --- tests/extmod/ure_debug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/extmod/ure_debug.py') diff --git a/tests/extmod/ure_debug.py b/tests/extmod/ure_debug.py index cfb264bb6..621fc8d50 100644 --- a/tests/extmod/ure_debug.py +++ b/tests/extmod/ure_debug.py @@ -1,7 +1,8 @@ # test printing debugging info when compiling try: import ure -except ImportError: + ure.DEBUG +except (ImportError, AttributeError): print("SKIP") raise SystemExit -- cgit v1.2.3