Skip to content

Commit b9fa087

Browse files
committed
Fixed BlockData/str comparison issue
Was giving each char as str instead of int
1 parent 7701789 commit b9fa087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javaobj/v2/beans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def __repr__(self):
631631

632632
def __eq__(self, other):
633633
if isinstance(other, (str, UNICODE_TYPE)):
634-
other_data = tuple(byte_to_int(x) for x in other)
634+
other_data = tuple(ord(x) for x in other)
635635
elif isinstance(other, bytes):
636636
other_data = tuple(byte_to_int(x) for x in other)
637637
else:

0 commit comments

Comments
 (0)