~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/gio_transport.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-14 14:39:16 UTC
  • mfrom: (6027.1.18 deprecations)
  • Revision ID: pqm@pqm.ubuntu.com-20120314143916-dggf9d1d26j3kizq
(vila) Remove some code deprecated in series older than 2.4 (inclusive)
 (Vincent Ladeuil)

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)