Skip to content

Commit e3e542a

Browse files
wanda-phiwhitequark
authored andcommitted
vendor.xilinx: fix a SyntaxWarning.
1 parent 14e73a7 commit e3e542a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amaranth/vendor/xilinx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ def vendor_toolchain(self):
347347
@property
348348
def _symbiflow_part(self):
349349
# drop the trailing speed grade letter(s), if any
350-
part = re.sub("[^\d]+$", "", self._part)
350+
part = re.sub(r"[^\d]+$", "", self._part)
351351
# drop temp/speed grade letters after family name, if any
352-
part = re.sub("(.{4}\d+t)[il]", r"\1", part)
352+
part = re.sub(r"(.{4}\d+t)[il]", r"\1", part)
353353
return part
354354

355355
# bitstream device name according to prjxray-db path

0 commit comments

Comments
 (0)