Skip to content

Commit 8ec439d

Browse files
committed
fix dict.has_key usage for python3
1 parent 5c8a291 commit 8ec439d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

myhdl/_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def enum(*names, **kwargs):
5454
for name in names:
5555
if not isinstance(name, string_types):
5656
raise TypeError()
57-
if codedict.has_key(name):
57+
if name in codedict:
5858
raise ValueError("enum literals should be unique")
5959
if encoding == "one_hot":
6060
code = bin(1<<i, nrbits)

0 commit comments

Comments
 (0)