Skip to content

Commit 7099aa1

Browse files
committed
Add module-level import re (fixes v1.12.4 NameError)
v1.12.4 moved the regex pre-compilation up to module scope but the original vfb_queries.py only imported re lazily inside the old encode_label function. Docker Image CI for v1.12.4 failed at module import with `NameError: name 're' is not defined` on line 344. One-line fix. py_compile clean. No behavioural change.
1 parent 60d96e7 commit 7099aa1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/vfbquery/vfb_queries.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from urllib.parse import unquote
1313
from .solr_result_cache import with_solr_cache
1414
import time
15+
import re
1516
import requests
1617
import inspect
1718

0 commit comments

Comments
 (0)