~facundo/magicicada-client/changes-for-xenial

« back to all changes in this revision

Viewing changes to ubuntuone/proxy/tunnel_client.py

  • Committer: Magicicada Bot
  • Author(s): Natalia
  • Date: 2016-05-30 15:43:30 UTC
  • mfrom: (1418.1.21 no-sso-client)
  • Revision ID: magicicada_bot-20160530154330-b4his4s3wlucu7zv
[r=facundo] - Decouple client code from ubuntu-sso-client code. Copied and made an initial cleanup on the networkstate, utils and keyring modules.
- Removed completely dependencies with oauthlibs.
- Moved tests/ folder to inside ubuntuone/ proper folders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
from twisted.internet import protocol, reactor
34
34
 
 
35
from ubuntuone.clientdefs import NAME
35
36
from ubuntuone.proxy.common import (
36
37
    BaseTunnelProtocol,
37
38
    CRLF,
54
55
        method_line = METHOD_LINE % (self.factory.tunnel_host,
55
56
                                     self.factory.tunnel_port)
56
57
        headers = {
57
 
            "User-Agent": "Magicicada tunnel client",
 
58
            "User-Agent": "%s tunnel client" % NAME,
58
59
            TUNNEL_COOKIE_HEADER: self.factory.cookie,
59
60
        }
60
61
        self.transport.write(method_line +