fixed dumb bug and annoying import issues

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-05-21 10:30:33 -04:00
parent 254ba4b0bb
commit ef3dd28a33
2 changed files with 2 additions and 2 deletions

View File

View File

@ -1,4 +1,4 @@
import aes
import aesutil
from buffer import FileBuffer
class AesBuffer(FileBuffer):
@ -6,7 +6,7 @@ class AesBuffer(FileBuffer):
def __init__(self, path, password, name=None):
'''ab = AesBuffer(path, password)'''
FileBuffer.__init__(self, path, name)
self.crypter = aes2.Crypter(password)
self.crypter = aesutil.Crypter(password)
def read_filter(self, data):
return self.crypter.decrypt(data)
def write_filter(self, data):