You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In python 3.5 I get the following error when trying to diff two objects that contain byte strings:
site-packages/deepdiff/diff.py in __diff_str(self, level)
904
905 # do we add a diff for convenience?
--> 906 if '\n' in level.t1 or '\n' in level.t2:
907 diff = difflib.unified_diff(
908 level.t1.splitlines(), level.t2.splitlines(), lineterm='')
TypeError: a bytes-like object is required, not 'str'
I guess you need to use b'\n' if the element is a byte string.
The text was updated successfully, but these errors were encountered:
In python 3.5 I get the following error when trying to diff two objects that contain byte strings:
I guess you need to use b'\n' if the element is a byte string.
The text was updated successfully, but these errors were encountered: