Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
sepolgen
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/sepolgen/util.pyo
mò ö"žQc�����������@���sŸ���d��f��d�„��ƒ��YZ��d�„��Z�e�d�„�Z�e�d�j�of�d�k�Z�d�k�Z�e��e�i�d�d�ƒZ�e�i �d�ƒ�x/�e �d�ƒ�D]�Z�e�i�ƒ��e�i �d �ƒ�qv�Wn�d�S( ���t���ConsoleProgressBarc�����������B���s/���t��Z�d�d�d�„�Z�d��d�„�Z�d�d�„�Z�RS(���Nid���t���#c���������C���s:���d�|��_�d�|��_�|�|��_�|�|��_�|�|��_�t�|��_�d��S(���Ni����(���t���selft���blockst���currentt���stepst ���indicatort���outt���Falset���done(���R���R���R���R���(����(����t1���/usr/lib/python2.4/site-packages/sepolgen/util.pyt���__init__���s���� c���������C���s<���t��|��_�|�o�|��i�i�d�|�ƒ�n�|��i�i�d�ƒ�d��S(���Ns��� %s: s3���%--10---20---30---40---50---60---70---80---90--100 (���R���R���R ���t���messageR���t���write(���R���R���(����(����R ���t���start���s���� i���c���������C���sÏ���|��i�|�7_�|��i�}�t�t�|��i�t�|��i�ƒ�d�ƒ�d�ƒ�|��_�|��i�d�j�o �d�|��_�n�|��i�|�}�|��i �i�|��i�|�ƒ�|��i �i �ƒ��|��i�d�j�o(�|��i�o�t�|��_�|��i �i�d�ƒ�n�d��S(���Nid���i���i2���s��� (���R���R���t���nR���t���oldt���intt���roundt���floatR���t���newR���R ���R���t���flushR ���t���True(���R���R���R���R���(����(����R ���t���step#���s���� - (���t���__name__t ���__module__R���t���NoneR���R���(����(����(����R ���R�������s���c���������C���s���g��}�|�i�|��ƒ�|�S(���N(���t���lt���extendt���s(���R���R���(����(����R ���t���set_to_list5���s���� c���������C���s_���t��|��ƒ�p�t�d�ƒ�‚�n�|�o"�t�|��ƒ�}�|�i�ƒ��|�d�Sn�x�|��D] �}�|�SqM�Wd�S(���s�� Return the first element of a set. It sometimes useful to return the first element from a set but, because sets are not indexable, this is rather hard. This function will return the first element from a set. If sorted is True, then the set will first be sorted (making this an expensive operation). Otherwise a random element will be returned (as sets are not ordered). s���empty containteri����N(���t���lenR���t ���IndexErrort���sortedR���R���t���sortt���x(���R���R!���R���R#���(����(����R ���t���first:���s���� � �t���__main__NR���iç��s���computing pif0.001(���R����R���R���R$���R���t���syst���timet���stdoutt���pR���t���ranget���iR���t���sleep(���R+���R&���R)���R����R'���R���R$���(����(����R ���t���?���s���! �