narrow: hoist a variable to a higher level to avoid use-before-init warning
In practice, this shouldn't generate an IOError, so there wouldn't have been a
problem. But PyCharm didn't know that.
#require docutils gettext $ $TESTDIR/check-gendoc pt_BR checking for parse errors