split platform
This commit is contained in:
commit
8c9b09577d
2261 changed files with 676163 additions and 0 deletions
10
lib/python3.5/site-packages/pyasn1/compat/binary.py
Normal file
10
lib/python3.5/site-packages/pyasn1/compat/binary.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from sys import version_info
|
||||
|
||||
if version_info[0:2] < (2, 6):
|
||||
def bin(x):
|
||||
if x <= 1:
|
||||
return '0b'+str(x)
|
||||
else:
|
||||
return bin(x>>1) + str(x&1)
|
||||
else:
|
||||
bin = bin
|
||||
Loading…
Add table
Add a link
Reference in a new issue