Compatibility with parsedatetime 1.x

This commit is contained in:
Manuel Ebert 2013-03-04 14:43:55 -08:00
parent 1c0916a8f3
commit 5236ca0c44
2 changed files with 3 additions and 4 deletions

View file

@ -4,7 +4,6 @@
from Entry import Entry
import os
import parsedatetime.parsedatetime as pdt
import parsedatetime.parsedatetime_consts as pdc
import re
from datetime import datetime
import time
@ -15,7 +14,7 @@ import readline, glob
try:
from Crypto.Cipher import AES
from Crypto.Random import random, atfork
except ImportError:
except ImportError:
pass
import hashlib
import getpass
@ -40,7 +39,7 @@ class Journal:
self.config.update(kwargs)
# Set up date parser
consts = pdc.Constants()
consts = pdt.Constants()
consts.DOWParseStyle = -1 # "Monday" will be either today or the last Monday
self.dateparse = pdt.Calendar(consts)
self.key = None # used to decrypt and encrypt the journal

View file

@ -1,2 +1,2 @@
clint >= 0.3.1
parsedatetime >= 0.8.7
parsedatetime == 1.1.2