fix error found by pylint 'W0104(pointless-statement) Statement seems to have no effect'
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 10 Oct 2017 12:34:50 +0300
changeset 1856 c2cba67145eb
parent 1855 f33942053466
child 1857 524ff4dbb7d9
fix error found by pylint 'W0104(pointless-statement) Statement seems to have no effect'
tests/tools/check_source.sh
xmlclass/xsdschema.py
--- 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