summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2/floatingip.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2013-07-03 18:12:58 -0500
committerDean Troyer <dtroyer@gmail.com>2013-07-29 19:12:29 -0500
commitdfb0e3e3c1b5b5563279bebfe222ed4762f79494 (patch)
tree43ec155c36076ba0645d131bde62f7baeaae2ef2 /openstackclient/compute/v2/floatingip.py
parent65d2a14e3e834ce0c57c879ec7d42715058254bf (diff)
downloadpython-openstackclient-dfb0e3e3c1b5b5563279bebfe222ed4762f79494.tar.gz
Begin Python 3 compatability
* use six.iteritems() * replace basestring with six.string_types * convert print statements to functions (they're all debugging and should be removed eventually anyway) * clean up OpenStack copyright: LLC -> Foundation Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
Diffstat (limited to 'openstackclient/compute/v2/floatingip.py')
-rw-r--r--openstackclient/compute/v2/floatingip.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/floatingip.py b/openstackclient/compute/v2/floatingip.py
index 1b07beb3..7ed847f5 100644
--- a/openstackclient/compute/v2/floatingip.py
+++ b/openstackclient/compute/v2/floatingip.py
@@ -16,6 +16,7 @@
"""Floating IP action implementations"""
import logging
+import six
from cliff import command
from cliff import lister
@@ -75,7 +76,7 @@ class CreateFloatingIP(show.ShowOne):
info = {}
info.update(floating_ip._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class DeleteFloatingIP(command.Command):