Mercurial > hg
comparison mercurial/hg.py @ 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 | 2f290136b7d6 |
children | 6a8738dc4a01 |
comparison
equal
deleted
inserted
replaced
44445:336ec75ed1ac | 44446:109322cd322a |
---|