comparison hgext/fastannotate/protocol.py @ 39620:b220851999b5

py3: use '%d' for integers instead of '%s' Differential Revision: https://phab.mercurial-scm.org/D4593
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 15 Sep 2018 00:24:05 +0300
parents 2182e67ea912
children d8a7690ccc74
comparison
equal deleted inserted replaced
39619:2aa12d7fcb4f 39620:b220851999b5
74 content = '' 74 content = ''
75 with open(p, 'rb') as f: 75 with open(p, 'rb') as f:
76 content = f.read() 76 content = f.read()
77 vfsbaselen = len(repo.vfs.base + '/') 77 vfsbaselen = len(repo.vfs.base + '/')
78 relpath = p[vfsbaselen:] 78 relpath = p[vfsbaselen:]
79 result += '%s\0%s\0%s' % (relpath, len(content), content) 79 result += '%s\0%d\0%s' % (relpath, len(content), content)
80 return result 80 return result
81 81
82 def _registerwireprotocommand(): 82 def _registerwireprotocommand():
83 if 'getannotate' in wireprotov1server.commands: 83 if 'getannotate' in wireprotov1server.commands:
84 return 84 return