From d5883801e74511fffe09d170c0bd264eaa2ac4e6 Mon Sep 17 00:00:00 2001 From: Evan Borgstrom Date: Thu, 10 Jul 2014 22:17:10 -0700 Subject: [PATCH] Restore Python 2.6 compatibility Commit 848deb47 broke support for 2.6 as it does not have support for implicit positional arguments. --- parsedatetime/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parsedatetime/__init__.py b/parsedatetime/__init__.py index 55f8102..0d995f4 100644 --- a/parsedatetime/__init__.py +++ b/parsedatetime/__init__.py @@ -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 = [ '', '' ] @@ -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 = [ '', '' ]