From 2575a944af5839cf1bbafbdfe7f7f55478020014 Mon Sep 17 00:00:00 2001 From: Emile Anclin Date: Mon, 15 Nov 2010 11:56:32 +0100 Subject: 2to3: fix a lot of white space after comma --- configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'configuration.py') 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): -- cgit v1.2.1