mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Compatibility with parsedatetime 1.x
This commit is contained in:
parent
1da6d4c47d
commit
4a24d6e3d3
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
clint >= 0.3.1
|
||||
parsedatetime >= 0.8.7
|
||||
parsedatetime == 1.1.2
|
||||
|
|
Loading…
Add table
Reference in a new issue