comparison mercurial/pure/mpatch.py @ 34435:5326e4ef1dab

style: never put multiple statements on one line Differential Revision: https://phab.mercurial-scm.org/D905
author Alex Gaynor <agaynor@mozilla.com>
date Fri, 29 Sep 2017 15:49:20 +0000
parents 0e8b0b9a7acc
children 644a02f6b34f
comparison
equal deleted inserted replaced
34434:884b595f5195 34435:5326e4ef1dab
73 frags = [(len(a), b1)] 73 frags = [(len(a), b1)]
74 74
75 # copy all the patches into our segment so we can memmove from them 75 # copy all the patches into our segment so we can memmove from them
76 pos = b2 + bl 76 pos = b2 + bl
77 m.seek(pos) 77 m.seek(pos)
78 for p in bins: m.write(p) 78 for p in bins:
79 m.write(p)
79 80
80 for plen in plens: 81 for plen in plens:
81 # if our list gets too long, execute it 82 # if our list gets too long, execute it
82 if len(frags) > 128: 83 if len(frags) > 128:
83 b2, b1 = b1, b2 84 b2, b1 = b1, b2