~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/gio_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-21 17:09:54 UTC
  • mfrom: (5385.1.1 trivial-NEWS-fileencoding)
  • Revision ID: pqm@pqm.ubuntu.com-20100821170954-efrj80bvw56s5mzc
(parthm) Remove 'encoding' option from NEWS modeline as its an error in Vim
 7.3+ (Parth Malwankar)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    debug,
44
44
    ui,
45
45
    )
46
 
from bzrlib.symbol_versioning import (
47
 
    DEPRECATED_PARAMETER,
48
 
    deprecated_in,
49
 
    deprecated_passed,
50
 
    warn,
51
 
    )
52
46
from bzrlib.trace import mutter, warning
53
47
from bzrlib.transport import (
54
48
    FileStream,
241
235
                                        " %s" % str(e), orig_error=e)
242
236
        return connection, (user, password)
243
237
 
244
 
    def disconnect(self):
245
 
        # FIXME: Nothing seems to be necessary here, which sounds a bit strange
246
 
        # -- vila 20100601
247
 
        pass
248
 
 
249
238
    def _reconnect(self):
250
 
        # FIXME: This doesn't seem to be used -- vila 20100601
251
239
        """Create a new connection with the previously used credentials"""
252
240
        credentials = self._get_credentials()
253
241
        connection, credentials = self._create_connection(credentials)
274
262
            else:
275
263
                self._translate_gio_error(e, relpath)
276
264
 
277
 
    def get(self, relpath, decode=DEPRECATED_PARAMETER, retries=0):
 
265
    def get(self, relpath, decode=False, retries=0):
278
266
        """Get the file at the given relative path.
279
267
 
280
268
        :param relpath: The relative path to the file
284
272
        We're meant to return a file-like object which bzr will
285
273
        then read from. For now we do this via the magic of StringIO
286
274
        """
287
 
        if deprecated_passed(decode):
288
 
            warn(deprecated_in((2,3,0)) %
289
 
                 '"decode" parameter to GioTransport.get()',
290
 
                 DeprecationWarning, stacklevel=2)
291
275
        try:
292
276
            if 'gio' in debug.debug_flags:
293
277
                mutter("GIO get: %s" % relpath)