Update Journal.py

This commit is contained in:
seinfield 2014-12-06 06:33:13 -05:00
parent 0affd5749f
commit 5aabbb7812

View file

@ -115,14 +115,12 @@ class Journal(object):
def get_date_length(myline):
j=''
print 'myproc line is: ' + myline
for i in [x for x in myline.split(' ') ]:
try:
dateutil.parser.parse(j+' ' +i)
j=j+' ' +i
except:
break
print 'j is ' + j
return len(j.strip())
# Entries start with a line that looks like 'date title' - let's figure out how