diff options
author | Kui Shi <skuicloud@gmail.com> | 2013-10-20 16:04:21 +0800 |
---|---|---|
committer | Kui Shi <skuicloud@gmail.com> | 2013-10-22 16:03:53 +0800 |
commit | d07ec04e193cb957929f0ab5761c9f080ad89ec2 (patch) | |
tree | 20e35e540acf30cb5c27e3cfb9c36470009eb0af /heatclient/v1/stacks.py | |
parent | e274a23dfcb1df7a67081eaa04c9d3aa142bf4d9 (diff) | |
download | python-heatclient-d07ec04e193cb957929f0ab5761c9f080ad89ec2.tar.gz |
Use the six library for compatability
Replace dict.iteritems() with six.iteritems(dict)
Import six for StringIO
Import urlutils for urlencode
Partial implement: blueprint py33-support
Change-Id: Ieae1299915168ef10ff54e0a9e9a346350e9d1fb
Diffstat (limited to 'heatclient/v1/stacks.py')
-rw-r--r-- | heatclient/v1/stacks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/heatclient/v1/stacks.py b/heatclient/v1/stacks.py index ca80293..c196e23 100644 --- a/heatclient/v1/stacks.py +++ b/heatclient/v1/stacks.py @@ -13,7 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. -import urllib +from heatclient.openstack.common.py3kcompat import urlutils from heatclient.common import base @@ -72,7 +72,7 @@ class StackManager(base.Manager): absolute_limit = kwargs.get('limit') def paginate(qp, seen=0): - url = '/stacks?%s' % urllib.urlencode(qp) + url = '/stacks?%s' % urlutils.urlencode(qp) stacks = self._list(url, "stacks") for stack in stacks: |