INNER CODE UNIT · Python

a

Coldcard/firmware · graphics/build.py:57

    a = [(wb,compress(n, wb)) for wb in range(-9, -15, -1)]

    a.sort(key=lambda i: (-len(i[1]), -i[0]))

    #print(' / '.join("%d => %d" % (wb,len(d)) for wb,d in a))

    return a[0]
        

def doit(outfname, fnames):

    assert outfname.endswith('.py')
    assert outfname != 'build.py'
    assert fnames, "need some files"

    fp = open(outfname, 'wt')

    fp.write("""\

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…