/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2010-10-08 04:38:25 UTC
  • mfrom: (5462 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5478.
  • Revision ID: mbp@sourcefrog.net-20101008043825-b181r8bo5r3qwb6j
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006-2010 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
35
34
from cStringIO import StringIO
36
35
import httplib
37
 
import sys
38
36
 
39
37
from bzrlib import (
40
38
    debug,
41
39
    errors,
42
 
    trace,
43
 
    __version__ as bzrlib_version,
44
40
    )
45
41
import bzrlib
46
42
from bzrlib.trace import mutter
133
129
            self._set_connection(connection, auth)
134
130
        return connection
135
131
 
 
132
    def disconnect(self):
 
133
        connection = self._get_connection()
 
134
        if connection is not None:
 
135
            connection.close()
 
136
 
136
137
    def has(self, relpath):
137
138
        """See Transport.has()"""
138
139
        # We set NO BODY=0 in _get_full, so it should be safe