Skip to content

Commit cc5dee5

Browse files
committed
Use isinstance instead of comparing type
This will work with subclasses
1 parent 0be8d33 commit cc5dee5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bagit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def _validate_oxum(self):
451451

452452
# If multiple Payload-Oxum tags (bad idea)
453453
# use the first listed in bag-info.txt
454-
if type(oxum) is list:
454+
if isinstance(oxum, list):
455455
oxum = oxum[0]
456456

457457
byte_count, file_count = oxum.split('.', 1)

0 commit comments

Comments
 (0)