Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 33107:e88fdec9cb9e
py3: use pycompat.bytestr() to convert str to bytes
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 26 Jun 2017 23:58:27 +0530 |
parents | 2f812b0d1936 |
children | 4f49810a1011 |
comparison
equal
deleted
inserted
replaced
33106:2f812b0d1936 | 33107:e88fdec9cb9e |
---|---|
1882 ui.write((' deltas : ') + fmt % pcfmt(deltatotal, totalsize)) | 1882 ui.write((' deltas : ') + fmt % pcfmt(deltatotal, totalsize)) |
1883 | 1883 |
1884 def fmtchunktype(chunktype): | 1884 def fmtchunktype(chunktype): |
1885 if chunktype == 'empty': | 1885 if chunktype == 'empty': |
1886 return ' %s : ' % chunktype | 1886 return ' %s : ' % chunktype |
1887 elif chunktype in string.ascii_letters: | 1887 elif chunktype in pycompat.bytestr(string.ascii_letters): |
1888 return ' 0x%s (%s) : ' % (hex(chunktype), chunktype) | 1888 return ' 0x%s (%s) : ' % (hex(chunktype), chunktype) |
1889 else: | 1889 else: |
1890 return ' 0x%s : ' % hex(chunktype) | 1890 return ' 0x%s : ' % hex(chunktype) |
1891 | 1891 |
1892 ui.write('\n') | 1892 ui.write('\n') |