From 4fe0d2bec815acae708234a1446e18ba4a16a964 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 2 Mar 2023 23:07:45 -0500 Subject: simplify python imports --- section-parse-insane.py | 3 +-- section-parse.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/section-parse-insane.py b/section-parse-insane.py index e7c6d9e..6dc531e 100644 --- a/section-parse-insane.py +++ b/section-parse-insane.py @@ -28,8 +28,7 @@ # # load libraries -import re -import sys +import re, sys # section and row matches S = re.compile('(?m)^test-text "[^"]+/foo"\n((?:^[^\n]*bar\.\d+\n)+)^\s*\n') diff --git a/section-parse.py b/section-parse.py index f2633dc..f590254 100755 --- a/section-parse.py +++ b/section-parse.py @@ -31,8 +31,7 @@ # # load libraries -import re -import sys +import re, sys # regex to match section header line # (e.g. a line that looks like this: test-text "GARBAGE/foo" -- cgit v1.2.3