obsolete: reuse _fm1metapair for computing _fm1metapairsize
authorAugie Fackler <augie@google.com>
Mon, 24 Jul 2017 10:21:23 -0400
changeset 33696 e5f8c7baa729
parent 33695 03039ff3082b
child 33697 38fc45721334
obsolete: reuse _fm1metapair for computing _fm1metapairsize It's evaluated at import time, so it seems silly to not reuse the constant name.
mercurial/obsolete.py
--- 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