~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-30 07:47:38 UTC
  • mfrom: (5394.2.1 integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20100830074738-ymqwum541fi8b4sr
(vila) Fix most of the leaking tests (Vincent Ladeuil)

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
128
128
            self._set_connection(connection, auth)
129
129
        return connection
130
130
 
 
131
    def disconnect(self):
 
132
        connection = self._get_connection()
 
133
        if connection is not None:
 
134
            connection.close()
 
135
 
131
136
    def has(self, relpath):
132
137
        """See Transport.has()"""
133
138
        # We set NO BODY=0 in _get_full, so it should be safe