From 241fe34da77d35ee48f9848ce41c684e51055206 Mon Sep 17 00:00:00 2001 From: Carl Beekhuizen Date: Wed, 19 Jun 2019 22:37:51 +0200 Subject: [PATCH] Workaround for python3.6 --- test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py index ed303833f..64d50b579 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py @@ -349,6 +349,8 @@ class BytesNMeta(type): 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):