scripts: Renamed import math alias m -> mt
Mainly to avoid conflicts with match results m, this frees up the single letter variables m for other purposes. Choosing a two letter alias was surprisingly difficult, but mt is nice in that it somewhat matches it (for itertools) and ft (for functools).
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@
|
||||
import bisect
|
||||
import collections as co
|
||||
import itertools as it
|
||||
import math as m
|
||||
import math as mt
|
||||
import os
|
||||
import struct
|
||||
|
||||
@@ -920,7 +920,7 @@ def main(disk, roots=None, *,
|
||||
|
||||
|
||||
# dynamically size the id field
|
||||
w_width = m.ceil(m.log10(max(1, btree.weight)+1))
|
||||
w_width = mt.ceil(mt.log10(max(1, btree.weight)+1))
|
||||
|
||||
# prbyd here means the last rendered rbyd, we update
|
||||
# in dbg_branch to always print interleaved addresses
|
||||
|
||||
Reference in New Issue
Block a user