fix error found by pylint 'W0104(pointless-statement) Statement seems to have no effect'
--- 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=
--- 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