diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 11:56:32 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 11:56:32 +0100 |
commit | 2575a944af5839cf1bbafbdfe7f7f55478020014 (patch) | |
tree | 69d3e962e42ca99acd40b370028a7365e8a4e999 /configuration.py | |
parent | 9dda4d681ecb3a769b39223ca723f98157071335 (diff) | |
download | logilab-common-2575a944af5839cf1bbafbdfe7f7f55478020014.tar.gz |
2to3: fix a lot of white space after comma
Diffstat (limited to 'configuration.py')
-rw-r--r-- | configuration.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configuration.py b/configuration.py index 8606de5..2de850f 100644 --- a/configuration.py +++ b/configuration.py @@ -196,8 +196,8 @@ def bytes_validator(optdict, name, value): return optparse.check_bytes(None, name, value) -VALIDATORS = {'string' : unquote, - 'int' : int, +VALIDATORS = {'string': unquote, + 'int': int, 'float': float, 'file': file_validator, 'font': unquote, @@ -341,7 +341,7 @@ def format_option_value(optdict, value): if isinstance(value, (list, tuple)): value = ','.join(value) elif isinstance(value, dict): - value = ','.join(['%s:%s' % (k,v) for k,v in value.items()]) + value = ','.join(['%s:%s' % (k, v) for k, v in value.items()]) elif hasattr(value, 'match'): # optdict.get('type') == 'regexp' # compiled regexp value = value.pattern @@ -400,7 +400,7 @@ def rest_format_section(stream, section, options, encoding=None, doc=None): if value: value = _encode(format_option_value(optdict, value), encoding) print >> stream, '' - print >> stream, ' Default: ``%s``' % value.replace("`` ","```` ``") + print >> stream, ' Default: ``%s``' % value.replace("`` ", "```` ``") class OptionsManagerMixIn(object): |