From dac929973fbfc7ac4c807afafc22b992510b4e6d Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 30 Dec 2015 14:34:18 -0500 Subject: Major push for completing issue #121. Now in API 3.1, all UUIDs must be the hex representations of a UUID, not the int representation. Also: * Some general code cleanup. * Fix issue 185 (REST server crash when subscribing a user without a preferred address). --- src/mailman/testing/documentation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mailman/testing/documentation.py') diff --git a/src/mailman/testing/documentation.py b/src/mailman/testing/documentation.py index 46336fc94..d98877a70 100644 --- a/src/mailman/testing/documentation.py +++ b/src/mailman/testing/documentation.py @@ -129,13 +129,13 @@ def dump_json(url, data=None, method=None, username=None, password=None): # entry is a dictionary. print('entry %d:' % i) for entry_key in sorted(entry): - print(' {0}: {1}'.format(entry_key, entry[entry_key])) + print(' {}: {}'.format(entry_key, entry[entry_key])) elif isinstance(value, list): printable_value = COMMASPACE.join( - "'{0}'".format(s) for s in sorted(value)) - print('{0}: [{1}]'.format(key, printable_value)) + "'{}'".format(s) for s in sorted(value)) + print('{}: [{}]'.format(key, printable_value)) else: - print('{0}: {1}'.format(key, value)) + print('{}: {}'.format(key, value)) -- cgit v1.2.3-70-g09d2