lfs: use %d to encode int, not str()
authorAugie Fackler <augie@google.com>
Fri, 02 Mar 2018 11:07:25 -0500
changeset 36603 dcb6fbaa43a8
parent 36602 e30be4d2ac60
child 36604 f6b9f9ddd0de
lfs: use %d to encode int, not str() Differential Revision: https://phab.mercurial-scm.org/D2567
hgext/lfs/wrapper.py
--- a/hgext/lfs/wrapper.py	Fri Mar 02 11:07:07 2018 -0500
+++ b/hgext/lfs/wrapper.py	Fri Mar 02 11:07:25 2018 -0500
@@ -90,7 +90,7 @@
 
     # replace contents with metadata
     longoid = 'sha256:%s' % oid
-    metadata = pointer.gitlfspointer(oid=longoid, size=str(len(text)))
+    metadata = pointer.gitlfspointer(oid=longoid, size='%d' % len(text))
 
     # by default, we expect the content to be binary. however, LFS could also
     # be used for non-binary content. add a special entry for non-binary data.