changeset 33670:e5f8c7baa729

obsolete: reuse _fm1metapair for computing _fm1metapairsize It's evaluated at import time, so it seems silly to not reuse the constant name.
author Augie Fackler <augie@google.com>
date Mon, 24 Jul 2017 10:21:23 -0400
parents 03039ff3082b
children 38fc45721334
files mercurial/obsolete.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/obsolete.py	Tue Aug 01 17:53:48 2017 +0200
+++ b/mercurial/obsolete.py	Mon Jul 24 10:21:23 2017 -0400
@@ -314,7 +314,7 @@
 _fm1parentshift = 14
 _fm1parentmask = (_fm1parentnone << _fm1parentshift)
 _fm1metapair = 'BB'
-_fm1metapairsize = _calcsize('BB')
+_fm1metapairsize = _calcsize(_fm1metapair)
 
 def _fm1purereadmarkers(data, off, stop):
     # make some global constants local for performance