# HG changeset patch # User Andrey Skvortsov # Date 1507628090 -10800 # Node ID c2cba67145ebeea72cd33b78c0a0b9d25dd2867f # Parent f33942053466a1b4831f74d48604526730925ccd fix error found by pylint 'W0104(pointless-statement) Statement seems to have no effect' diff -r f33942053466 -r c2cba67145eb tests/tools/check_source.sh --- a/tests/tools/check_source.sh Tue Oct 10 12:21:46 2017 +0300 +++ b/tests/tools/check_source.sh Tue Oct 10 12:34:50 2017 +0300 @@ -233,6 +233,7 @@ enable=$enable,W0403 # (relative-import) Relative import 'Y', should be 'X.Y' enable=$enable,C0112 # (empty-docstring) enable=$enable,W0631 # (undefined-loop-variable) Using possibly undefined loop variable 'X' + enable=$enable,W0104 # (pointless-statement) Statement seems to have no effect # enable= options= diff -r f33942053466 -r c2cba67145eb xmlclass/xsdschema.py --- a/xmlclass/xsdschema.py Tue Oct 10 12:21:46 2017 +0300 +++ b/xmlclass/xsdschema.py Tue Oct 10 12:34:50 2017 +0300 @@ -152,7 +152,7 @@ for child in children: if child["type"] == SIMPLETYPE: - union["memberTypes"].appendchild + union["memberTypes"].append(child) if len(union["memberTypes"]) == 0: raise ValueError("No base type has been defined for union!") return union