~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_pycurl.py

  • Committer: Martin Pool
  • Date: 2010-04-01 04:41:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5128.
  • Revision ID: mbp@sourcefrog.net-20100401044118-shyctqc02ob08ngz
ignore .testrepository

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
31
31
# from _curl_perform.  Not done because we may deprecate pycurl in the
32
32
# future -- vila 20070212
33
33
 
 
34
import os
34
35
from cStringIO import StringIO
35
36
import httplib
 
37
import sys
36
38
 
37
39
from bzrlib import (
38
40
    debug,
39
41
    errors,
 
42
    trace,
 
43
    __version__ as bzrlib_version,
40
44
    )
41
45
import bzrlib
42
46
from bzrlib.trace import mutter
128
132
            self._set_connection(connection, auth)
129
133
        return connection
130
134
 
131
 
    def disconnect(self):
132
 
        connection = self._get_connection()
133
 
        if connection is not None:
134
 
            connection.close()
135
 
 
136
135
    def has(self, relpath):
137
136
        """See Transport.has()"""
138
137
        # We set NO BODY=0 in _get_full, so it should be safe