Skip to content

Commit c9c4270

Browse files
Apply ruff/pycodestyle rule E721 (#347)
E721 Do not compare types, use `isinstance()`
1 parent f2f488e commit c9c4270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmltodict.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def _emit(key, value, content_handler,
443443
attrs[ik[len(attr_prefix):]] = iv
444444
continue
445445
children.append((ik, iv))
446-
if type(indent) is int:
446+
if isinstance(indent, int):
447447
indent = ' ' * indent
448448
if pretty:
449449
content_handler.ignorableWhitespace(depth * indent)

0 commit comments

Comments
 (0)