Merge pull request #3815 from charlottia/py312-syntax

This commit is contained in:
Jannis Harder 2023-06-26 16:36:58 +02:00 committed by GitHub
commit 596da3f2a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -768,7 +768,7 @@ class SmtIo:
if self.timeinfo: if self.timeinfo:
i = 0 i = 0
s = "/-\|" s = r"/-\|"
count = 0 count = 0
num_bs = 0 num_bs = 0
@ -1171,7 +1171,7 @@ class MkVcd:
def escape_name(self, name): def escape_name(self, name):
name = re.sub(r"\[([0-9a-zA-Z_]*[a-zA-Z_][0-9a-zA-Z_]*)\]", r"<\1>", name) name = re.sub(r"\[([0-9a-zA-Z_]*[a-zA-Z_][0-9a-zA-Z_]*)\]", r"<\1>", name)
if re.match("[\[\]]", name) and name[0] != "\\": if re.match(r"[\[\]]", name) and name[0] != "\\":
name = "\\" + name name = "\\" + name
return name return name