Minor refactoring in xml.etree.ElementTree doctype parser.
Minor refactoring in xml.etree.ElementTree doctype parser.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator