Skip to content

Commit ce91228

Browse files
committed
Replace invalid \$ escape in regex
Replace \$ with \\$ to avoid SyntaxWarning in Python 3.14.
1 parent df0fef5 commit ce91228

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/javapackages/maven/artifact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def interpolate(self, properties):
191191
getattr(self, member) and
192192
isinstance(getattr(self, member), str)):
193193
curr_value = getattr(self, member)
194-
prog = re.compile("\$\{([^}]+)\}")
194+
prog = re.compile("\\$\{([^}]+)\}")
195195
props = prog.findall(curr_value)
196196
for key in props:
197197
try:

0 commit comments

Comments
 (0)