Skip to content

Commit

Permalink
Restore Python 2.6 compatibility
Browse files Browse the repository at this point in the history
Commit 848deb4 broke support for 2.6 as it does not have support for
implicit positional arguments.
  • Loading branch information
Evan Borgstrom committed Jul 11, 2014
1 parent 8235dbb commit d588380
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 d588380

Please sign in to comment.