~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge bzr.dev into cleanup

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