summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-10-11 13:04:37 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-10-11 13:04:37 +0200
commit427ef35c33b99b137356525dedef3cb0f2f390cd (patch)
treec80285b41d0809c34e1508e108adf8831ca9f481
parent56d0a8a66b1e28f24bec259af5bb99d5c6c47259 (diff)
downloadlogilab-common-427ef35c33b99b137356525dedef3cb0f2f390cd.tar.gz
ensure option name not given has unicode, cause error on optparse + python 2.5
-rw-r--r--configuration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configuration.py b/configuration.py
index 7e0333d..ee79bbb 100644
--- a/configuration.py
+++ b/configuration.py
@@ -497,7 +497,7 @@ class OptionsManagerMixIn(object):
not optdict['action'] in ('store_true', 'store_false')):
optdict['help'] += ' [current: %default]'
del optdict['default']
- args = ['--' + opt]
+ args = ['--' + str(opt)]
if 'short' in optdict:
self._short_options[optdict['short']] = opt
args.append('-' + optdict['short'])