Mercurial > hg-stable
changeset 17573:fb8658ad9e8d
store: eliminate unneded last assignment to n in _auxencode()
The check for period or space at the end of the string is the last one, the
local variable n is thus not used anymore.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sat, 15 Sep 2012 21:42:58 +0200 |
parents | b644287e79a8 |
children | 81a033bb29bc |
files | mercurial/store.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/store.py Sat Sep 15 21:42:52 2012 +0200 +++ b/mercurial/store.py Sat Sep 15 21:42:58 2012 +0200 @@ -161,8 +161,7 @@ res[i] = n if n[-1] in '. ': # encode last period or space ('foo...' -> 'foo..~2e') - n = n[:-1] + "~%02x" % ord(n[-1]) - res[i] = n + res[i] = n[:-1] + "~%02x" % ord(n[-1]) return '/'.join(res) _maxstorepathlen = 120