summaryrefslogtreecommitdiff
path: root/designateclient/functionaltests
diff options
context:
space:
mode:
authorsonu.kumar <sonu.kumar@nectechnologies.in>2015-11-24 16:29:41 +0530
committersonu.kumar <sonu.kumar@nectechnologies.in>2015-11-24 16:35:14 +0530
commitfa5f6c4b56772ed9f8779a8ffb0d47245c49e1bd (patch)
tree6b388dba26d1323dbd9bad30be928a2d1759f5b6 /designateclient/functionaltests
parent7d5c1ecff85d28330b7e5ea67d384884eb32b4af (diff)
downloadpython-designateclient-fa5f6c4b56772ed9f8779a8ffb0d47245c49e1bd.tar.gz
Adds changes related to py3 compatibility
This patch replaces map() and zip() with six.moves.map() and six.moves.zip() respectively to provide py2/3 compatibility. Change-Id: I2e4b61c67ee34247f4c9e77f593df18d9dfd574b Partially-Implements: blueprint designate-py3
Diffstat (limited to 'designateclient/functionaltests')
-rw-r--r--designateclient/functionaltests/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/designateclient/functionaltests/models.py b/designateclient/functionaltests/models.py
index e85709d..f298084 100644
--- a/designateclient/functionaltests/models.py
+++ b/designateclient/functionaltests/models.py
@@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
+import six
from tempest_lib.cli import output_parser
@@ -51,7 +52,7 @@ class FieldValueModel(Model):
class ListEntryModel(Model):
def __init__(self, fields, values):
- for k, v in zip(fields, values):
+ for k, v in six.moves.zip(fields, values):
setattr(self, k, v)