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): def get_date_length(myline):
j='' j=''
print 'myproc line is: ' + myline
for i in [x for x in myline.split(' ') ]: for i in [x for x in myline.split(' ') ]:
try: try:
dateutil.parser.parse(j+' ' +i) dateutil.parser.parse(j+' ' +i)
j=j+' ' +i j=j+' ' +i
except: except:
break break
print 'j is ' + j
return len(j.strip()) return len(j.strip())
# Entries start with a line that looks like 'date title' - let's figure out how # Entries start with a line that looks like 'date title' - let's figure out how