Skip to content

Commit dddb563

Browse files
chg: remove redundant isinstance() check
- L791 does a str() conversion so question_name can never be bytes
1 parent 0a7bb72 commit dddb563

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

pyxform/xls2json.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,6 @@ def workbook_to_json(
790790
)
791791
question_name = str(row[constants.NAME])
792792
if not is_xml_tag(question_name):
793-
if isinstance(question_name, bytes):
794-
question_name = question_name.decode("utf-8")
795-
796793
raise PyXFormError(
797794
f"{ROW_FORMAT_STRING % row_number} Invalid question name '{question_name}'. Names {XML_IDENTIFIER_ERROR_MESSAGE}"
798795
)

0 commit comments

Comments
 (0)