Skip to content

Commit

Permalink
python2.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic30 committed Apr 20, 2020
1 parent 8efa6f8 commit 91e9b63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hdlConvertor/hdlAst/_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import Optional, Union, List

from hdlConvertor.hdlAst._bases import iHdlObj
from hdlConvertor.py_ver_compatibility import is_str


class HdlDirection(Enum):
Expand Down Expand Up @@ -30,7 +31,7 @@ class HdlName(object):
"""

def __init__(self, val, obj=None):
assert isinstance(val, str), val
assert is_str(val, str), val
self.val = val
self.obj = obj

Expand Down

0 comments on commit 91e9b63

Please sign in to comment.