mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Apply 'make format'
This commit is contained in:
+2
-1
@@ -886,7 +886,8 @@ def write_type_enum(prefix, nodeList):
|
||||
fh.write(" static const uint32_t hashes[] = {\n")
|
||||
for node in sorted(filter(lambda _: _.isLeaf, nodeList), key=lambda _: _.typeId):
|
||||
digest = hashlib.md5((prefix + node.name).encode("ascii")).hexdigest()
|
||||
fh.write(" 0x{h}U, // {p}{n}\n".format(h=digest[:8], p=prefix, n=node.name))
|
||||
fh.write(" 0x{h}U, // {p}{n}\n".format(h=digest[:8], p=prefix,
|
||||
n=node.name))
|
||||
fh.write(" };\n")
|
||||
fh.write(" return hashes[m_e];\n")
|
||||
fh.write(" }\n")
|
||||
|
||||
Reference in New Issue
Block a user