Skip to content

Commit

Permalink
Workaround for python3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlBeek committed Jun 19, 2019
1 parent 3418c35 commit 241fe34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ def __instancecheck__(self, other):
return _is_bytes_n_instance_of(self, other.__class__)

def __eq__(self, other):
if other == ():
return False
return _is_equal_bytes_n_type(self, other)

def __ne__(self, other):
Expand Down

0 comments on commit 241fe34

Please sign in to comment.