# HG changeset patch # User Andrey Skvortsov # Date 1507632235 -10800 # Node ID 4eeddef7f9737d0542a31c7ca91a7d9b5d9b2b3b # Parent 1df77c8092571f9369c508a74884432510822649 fix format string argument error found by pylint '(too-many-format-args) Too many arguments for format string' diff -r 1df77c809257 -r 4eeddef7f973 tests/tools/check_source.sh --- a/tests/tools/check_source.sh Tue Oct 10 13:33:46 2017 +0300 +++ b/tests/tools/check_source.sh Tue Oct 10 13:43:55 2017 +0300 @@ -237,6 +237,7 @@ enable=$enable,W0107 # (unnecessary-pass) Unnecessary pass statement enable=$enable,W0406 # (import-self) Module import itself enable=$enable,C0413 # (wrong-import-position) Import "import X" should be placed at the top of the module + enable=$enable,E1305 # (too-many-format-args) Too many arguments for format string # enable= options= diff -r 1df77c809257 -r 4eeddef7f973 xmlclass/xmlclass.py --- a/xmlclass/xmlclass.py Tue Oct 10 13:33:46 2017 +0300 +++ b/xmlclass/xmlclass.py Tue Oct 10 13:43:55 2017 +0300 @@ -1231,7 +1231,7 @@ return "(?:%s){1,%d}" % (name, infos["maxOccurs"]) else: if infos["maxOccurs"] == "unbounded": - return "(?:%s){%d,}" % (name, infos["minOccurs"], name) + return "(?:%s){%d,}" % (name, infos["minOccurs"]) else: return "(?:%s){%d,%d}" % (name, infos["minOccurs"],