~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/gio_transport.py

  • Committer: Vincent Ladeuil
  • Date: 2010-08-31 08:25:15 UTC
  • mfrom: (5247.7.1 catch-them-all)
  • mto: This revision was merged to the branch mainline in revision 5400.
  • Revision ID: v.ladeuil+lp@free.fr-20100831082515-an9mtdmhalo7xaq0
Merge catch-them-all into more-ignored-exceptions

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
    )
46
52
from bzrlib.trace import mutter, warning
47
53
from bzrlib.transport import (
48
54
    FileStream,
268
274
            else:
269
275
                self._translate_gio_error(e, relpath)
270
276
 
271
 
    def get(self, relpath, decode=False, retries=0):
 
277
    def get(self, relpath, decode=DEPRECATED_PARAMETER, retries=0):
272
278
        """Get the file at the given relative path.
273
279
 
274
280
        :param relpath: The relative path to the file
278
284
        We're meant to return a file-like object which bzr will
279
285
        then read from. For now we do this via the magic of StringIO
280
286
        """
 
287
        if deprecated_passed(decode):
 
288
            warn(deprecated_in((2,3,0)) %
 
289
                 '"decode" parameter to GioTransport.get()',
 
290
                 DeprecationWarning, stacklevel=2)
281
291
        try:
282
292
            if 'gio' in debug.debug_flags:
283
293
                mutter("GIO get: %s" % relpath)