Skip to content

Commit 5a959d5

Browse files
committed
Fix deprecation warning for re.sub
1 parent 84bab80 commit 5a959d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
- Fix deprecation warning for `re.sub`
11+
1012
## [v0.2.4] - 2025-08-27
1113

1214
- Encode numpy datatypes correctly when exporting to JSON

vecorel_cli/cli/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def log(
5555
message = str(message)
5656

5757
# Escape special characters
58-
message = re.sub(r"(<\w+>)", r"\\\1", message, 0, re.IGNORECASE)
58+
message = re.sub(r"(<\w+>)", r"\\\1", message, count=0, flags=re.IGNORECASE)
5959

6060
# Handle indentation (including multiple lines)
6161
message = self._indent_text(message, indent)

0 commit comments

Comments
 (0)