Repository URL to install this package:
|
Version:
1.0.11 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
coverage
/
__pycache__
/
numbits.cpython-37.pyc
|
|---|
B cÞç;ébã @ sÊ d Z ddlZddlmZ ddlmZmZ dd Zeddd ed dddd Zeddddd Z edddddd Z edddddd Zedddddd Zedddddd Z dd ZdS ) aÒ Functions to manipulate packed binary representations of number sets. To save space, coverage stores sets of line numbers in SQLite using a packed binary representation called a numbits. A numbits is a set of positive integers. A numbits is stored as a blob in the database. The exact meaning of the bytes in the blobs should be considered an implementation detail that might change in the future. Use these functions to work with those binary blobs of data. é N)Úzip_longest)ÚcontractÚnew_contractc C s | S )z?Convert a bytestring into a type SQLite will accept for a blob.© )Úbr r ú/build/wlanpi-profiler-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/numbits.pyÚ_to_blob s r Zblobc C s t | tS )N)Ú isinstanceÚbytes)Úvr r r Ú<lambda> ó r ÚIterable)ÚnumsÚreturnsc C sl yt | d d }W n tk r, tdS X t|}x(| D ] }||d d|d >