Mercurial > public > mercurial-scm > hg-stable
diff hgext/lfs/blobstore.py @ 43091:127cc1f72e70
py3: stop normalizing .encode()/.decode() arguments to unicode
Now that we don't byte transform string literals, we no longer need
this transform.
While we're here, we also drop some superfluous u'' prefix in existing
callers.
Differential Revision: https://phab.mercurial-scm.org/D7011
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Oct 2019 17:27:51 -0400 |
parents | c59eb1560c44 |
children | 579672b347d2 |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Sun Oct 06 16:58:55 2019 -0400 +++ b/hgext/lfs/blobstore.py Sun Oct 06 17:27:51 2019 -0400 @@ -394,7 +394,7 @@ def encodestr(x): if isinstance(x, pycompat.unicode): - return x.encode(u'utf-8') + return x.encode('utf-8') return x return pycompat.rapply(encodestr, response)