Skip to content

scour.py: Use named constants rather than literal integers for `nodeType'

Jonathan Neuhauser requested to merge github/fork/mfwitten/00-nodeType/00 into master

Created by: mfwitten

The code used to look like this:

if child.nodeType == 1:
    ...

Now, the code looks like this:

if child.nodeType == Node.ELEMENT_NODE:
    ...

Merge request reports

Loading