From 2795e24988aa021a8de578458922fd09683a249c Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 14 Dec 2007 16:30:03 -0700 Subject: [PATCH] This is actually just my codebreaking toolkit --- codebreak/__init__.py => __init__.py | 0 bitarray.py | 10 ---------- codebreak/crypto.py => crypto.py | 0 codebreak/resequence.py => resequence.py | 0 startup.py | 8 -------- 5 files changed, 18 deletions(-) rename codebreak/__init__.py => __init__.py (100%) delete mode 100644 bitarray.py rename codebreak/crypto.py => crypto.py (100%) rename codebreak/resequence.py => resequence.py (100%) delete mode 100644 startup.py diff --git a/codebreak/__init__.py b/__init__.py similarity index 100% rename from codebreak/__init__.py rename to __init__.py diff --git a/bitarray.py b/bitarray.py deleted file mode 100644 index 79be6e0..0000000 --- a/bitarray.py +++ /dev/null @@ -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 diff --git a/codebreak/crypto.py b/crypto.py similarity index 100% rename from codebreak/crypto.py rename to crypto.py diff --git a/codebreak/resequence.py b/resequence.py similarity index 100% rename from codebreak/resequence.py rename to resequence.py diff --git a/startup.py b/startup.py deleted file mode 100644 index 26bd888..0000000 --- a/startup.py +++ /dev/null @@ -1,8 +0,0 @@ -try: - import readline -except ImportError: - print "Module readline not available." -else: - import rlcompleter - readline.parse_and_bind("tab: complete") -