diff options
author | Victor Stinner <vstinner@redhat.com> | 2016-05-02 21:17:17 +0200 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2016-05-02 22:31:05 +0200 |
commit | bdf664bbdf29e32a0e88cc971826029f418d5fff (patch) | |
tree | 17c46de4ca38c0e52337c14c31be4442e32ce839 /trove/datastore | |
parent | 79f350852e1cb57fdfc493d68cd87d480b36257c (diff) | |
download | trove-bdf664bbdf29e32a0e88cc971826029f418d5fff.tar.gz |
Port designate code to Python 3
* Replace map() with list-comprehension to get a list on Python 3.
* Unicode dance: encode text to UTF-8 for MD5, decode Base32 from
ASCII to get text.
* tox.ini: test_designate_driver and test_datastore_versions to
Python 3.4
Partially implements: blueprint trove-python3
Change-Id: I1aa5387908b3f108487ed731cee5f7d9bbfd7d69
Diffstat (limited to 'trove/datastore')
-rw-r--r-- | trove/datastore/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/datastore/models.py b/trove/datastore/models.py index 18e157c1..f5c698e1 100644 --- a/trove/datastore/models.py +++ b/trove/datastore/models.py @@ -131,7 +131,7 @@ class Capabilities(object): # right back. return cap - self.capabilities = map(override, capability_defaults) + self.capabilities = [override(obj) for obj in capability_defaults] LOG.debug('Capabilities for datastore %(ds_id)s: %(capabilities)s' % {'ds_id': self.datastore_version_id, |