Skip to content

Commit 570a1a0

Browse files
authored
Remove Python 2 compatibility dependency six
1 parent 64e1e3a commit 570a1a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test_tipc/supplementary/data.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ def __init__(self, img_mode="RGB", channel_first=False, **kwargs):
4444

4545
def __call__(self, data):
4646
img = data["image"]
47-
assert (
48-
type(img) is bytes and len(img) > 0
49-
), "invalid input 'img' in DecodeImage"
47+
assert (type(img) is bytes and len(img) > 0), "invalid input 'img' in DecodeImage"
5048
img = np.frombuffer(img, dtype="uint8")
5149
img = cv2.imdecode(img, 1)
5250
if img is None:

0 commit comments

Comments
 (0)