From f7ebe41fd4cfbd61d51ed89c2c2ff40ca4d02ce7 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Mon, 16 Apr 2012 21:40:59 +0200 Subject: [PATCH] _block_tail is deprecated and removed --- jrnl.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/jrnl.py b/jrnl.py index 892d3326..163fa05d 100755 --- a/jrnl.py +++ b/jrnl.py @@ -13,7 +13,7 @@ try: import simplejson as json except ImportError: import json import sys import readline, glob -from Crypto.Cipher import AES +from ` import AES from Crypto.Random import random, atfork import hashlib import getpass @@ -82,12 +82,6 @@ class Journal: self.entries = self.parse(journal_txt) self.sort() - def _block_tail(self, s, b=16, force=False): - """Appends spaces to a string until length is a multiple of b""" - if force and len(s) % 16 == 0: - return s + " "*16 - return s + " "*(b - len(s) % b) - def _decrypt(self, cipher): """Decrypts a cipher string using self.key as the key and the first 16 byte of the cipher as the IV""" if not cipher: