mirror of https://github.com/dirtbags/netarch.git
This is actually just my codebreaking toolkit
This commit is contained in:
parent
c721f5876c
commit
2795e24988
10
bitarray.py
10
bitarray.py
|
@ -1,10 +0,0 @@
|
|||
from StringIO import StringIO
|
||||
|
||||
class bitvector:
|
||||
def __init__(self, txt):
|
||||
self.txt = txt
|
||||
|
||||
def __getitem__(self, idx):
|
||||
base, offset = divmod(idx, 8)
|
||||
o = ord(self.txt[base])
|
||||
return (o >> offset) & 1
|
|
@ -1,8 +0,0 @@
|
|||
try:
|
||||
import readline
|
||||
except ImportError:
|
||||
print "Module readline not available."
|
||||
else:
|
||||
import rlcompleter
|
||||
readline.parse_and_bind("tab: complete")
|
||||
|
Loading…
Reference in New Issue