Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.
This repository was archived by the owner on May 4, 2021. It is now read-only.

httplib2 replaces from http import send_request in Python3 #16

@sirvon

Description

@sirvon
Traceback (most recent call last):
  File "tutumStatus.py", line 1, in <module>
    import tutum
  File "/usr/local/lib/python3.4/site-packages/tutum/__init__.py", line 24, in <module>
    from tutum.api.stack import Stack
  File "/usr/local/lib/python3.4/site-packages/tutum/api/stack.py", line 3, in <module>
    from http import send_request

FIX:

import httplib2
http = httplib2.Http()
.....
    def export(self):
        """Export the stack in Tutum.

        :returns: bool -- whether or not the operation succeeded
        :raises: TutumApiError
        """
        if not self._detail_uri:
            raise TutumApiError("You must save the object before performing this operation")
        url = "/".join([self._detail_uri, "export"])
        return http.request("GET", url, inject_header=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions