Skip to content

Commit

Permalink
Fixed core.
Browse files Browse the repository at this point in the history
  • Loading branch information
arekbulski committed Aug 23, 2016
1 parent 65de8a7 commit ca14a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion construct/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Construct(object):
__slots__ = ["name", "conflags"]
def __init__(self, name, flags = 0):
if name is not None:
if not isinstance(name, (unicode, bytes)):
if not isinstance(name, (str, bytes)):
raise TypeError("name must be a string or None", name)
if name == "_" or name.startswith("<"):
raise ValueError("reserved name", name)
Expand Down

0 comments on commit ca14a88

Please sign in to comment.