summaryrefslogtreecommitdiff
path: root/optik_ext.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2013-05-24 20:47:22 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2013-05-24 20:47:22 +0200
commit65dcf69e1eb9f16595f1c219af5f86db606d763a (patch)
tree3fcd9983ee4252599fff86542e2ff4b22e5fb889 /optik_ext.py
parent55b532fef016a9aab9a2050129548407449deaa0 (diff)
downloadlogilab-common-65dcf69e1eb9f16595f1c219af5f86db606d763a.tar.gz
drop compatibility with python < 2.4
Diffstat (limited to 'optik_ext.py')
-rw-r--r--optik_ext.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/optik_ext.py b/optik_ext.py
index 39bbe18..49d685b 100644
--- a/optik_ext.py
+++ b/optik_ext.py
@@ -65,9 +65,6 @@ try:
except ImportError:
HAS_MX_DATETIME = False
-
-OPTPARSE_FORMAT_DEFAULT = sys.version_info >= (2, 4)
-
from logilab.common.textutils import splitstrip
def check_regexp(option, opt, value):
@@ -227,10 +224,7 @@ class Option(BaseOption):
def process(self, opt, value, values, parser):
# First, convert the value(s) to the right type. Howl if any
# value(s) are bogus.
- try:
- value = self.convert_value(opt, value)
- except AttributeError: # py < 2.4
- value = self.check_value(opt, value)
+ value = self.convert_value(opt, value)
if self.type == 'named':
existant = getattr(values, self.dest)
if existant: