Skip to content

Commit

Permalink
Merge pull request #48 from borgstrom/restore-py26-compat
Browse files Browse the repository at this point in the history
Restore Python 2.6 compatibility
  • Loading branch information
bear committed Jul 11, 2014
2 parents 8235dbb + d588380 commit c30018e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parsedatetime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1984,11 +1984,11 @@ def _initSymbols(ptc):

if len(am) > 0:
ptc.am.append(am[0])
ptc.am.append('{}.{}.'.format(am[0], am[1]))
ptc.am.append('{0}.{1}.'.format(am[0], am[1]))
am = am.lower()
ptc.am.append(am)
ptc.am.append(am[0])
ptc.am.append('{}.{}.'.format(am[0], am[1]))
ptc.am.append('{0}.{1}.'.format(am[0], am[1]))
else:
am = ''
ptc.am = [ '', '' ]
Expand All @@ -1999,11 +1999,11 @@ def _initSymbols(ptc):

if len(pm) > 0:
ptc.pm.append(pm[0])
ptc.pm.append('{}.{}.'.format(pm[0], pm[1]))
ptc.pm.append('{0}.{1}.'.format(pm[0], pm[1]))
pm = pm.lower()
ptc.pm.append(pm)
ptc.pm.append(pm[0])
ptc.pm.append('{}.{}.'.format(pm[0], pm[1]))
ptc.pm.append('{0}.{1}.'.format(pm[0], pm[1]))
else:
pm = ''
ptc.pm = [ '', '' ]
Expand Down

0 comments on commit c30018e

Please sign in to comment.