Fixed a pylint error caused by a cherry-pick that gto carried away.