PyLint fix.
Merge pull request #14945 from cro/ldap_metacharacters6

Pylint fix.