~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/gio_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2012-04-02 01:44:26 UTC
  • mfrom: (6518 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120402014426-0o5qtysohyl006b2
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
            else:
272
272
                self._translate_gio_error(e, relpath)
273
273
 
274
 
    def get(self, relpath, decode=DEPRECATED_PARAMETER, retries=0):
 
274
    def get(self, relpath, retries=0):
275
275
        """Get the file at the given relative path.
276
276
 
277
277
        :param relpath: The relative path to the file
281
281
        We're meant to return a file-like object which bzr will
282
282
        then read from. For now we do this via the magic of StringIO
283
283
        """
284
 
        if deprecated_passed(decode):
285
 
            warn(deprecated_in((2,3,0)) %
286
 
                 '"decode" parameter to GioTransport.get()',
287
 
                 DeprecationWarning, stacklevel=2)
288
284
        try:
289
285
            if 'gio' in debug.debug_flags:
290
286
                mutter("GIO get: %s" % relpath)