##// END OF EJS Templates
lfs: add some bytestring wrappers in blobstore.py...
Augie Fackler -
r36619:4da09b46 default
parent child Browse files
Show More
@@ -18,6 +18,7 b' from mercurial.i18n import _'
18 from mercurial import (
18 from mercurial import (
19 error,
19 error,
20 pathutil,
20 pathutil,
21 pycompat,
21 url as urlmod,
22 url as urlmod,
22 util,
23 util,
23 vfs as vfsmod,
24 vfs as vfsmod,
@@ -281,9 +282,9 b' class _gitlfsremote(object):'
281 See https://github.com/git-lfs/git-lfs/blob/master/docs/api/\
282 See https://github.com/git-lfs/git-lfs/blob/master/docs/api/\
282 basic-transfers.md
283 basic-transfers.md
283 """
284 """
284 oid = str(obj['oid'])
285 oid = pycompat.bytestr(obj['oid'])
285
286
286 href = str(obj['actions'][action].get('href'))
287 href = pycompat.bytestr(obj['actions'][action].get('href'))
287 headers = obj['actions'][action].get('header', {}).items()
288 headers = obj['actions'][action].get('header', {}).items()
288
289
289 request = util.urlreq.request(href)
290 request = util.urlreq.request(href)
General Comments 0
You need to be logged in to leave comments. Login now