Mercurial > hg
diff contrib/pylintrc @ 44446:109322cd322a
tests: avoid implicit conversion of str to unicode
On Python 2, str.encode('ascii') implicitly converts the string to unicode and
then back to str.
Since the point of this expression is to convert a bool to a str, the '%r'
conversion specifier can be used instead in the format string.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Thu, 05 Mar 2020 18:10:19 +0100 |
parents | 86531a7038ed |
children |