~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ftp/_gssapi.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
See RFC2228 for details.
20
20
"""
21
21
 
 
22
from __future__ import absolute_import
 
23
 
22
24
import base64, ftplib
23
25
 
24
26
from bzrlib import (
25
27
    errors,
26
28
    )
27
 
from bzrlib.trace import mutter
 
29
from bzrlib.i18n import gettext
 
30
from bzrlib.trace import (
 
31
    mutter,
 
32
    note,
 
33
    )
28
34
from bzrlib.transport.ftp import FtpTransport
29
35
 
30
36
try:
79
85
                        if not ((resp.startswith('235 ') and rc == 1) or
80
86
                                (resp.startswith('335 ') and rc == 0)):
81
87
                            raise ftplib.error_reply, resp
82
 
            trace.note("Authenticated as %s" % kerberos.authGSSClientUserName(
83
 
                    self.vc))
 
88
            note(gettext("Authenticated as %s") %
 
89
                 kerberos.authGSSClientUserName(self.vc))
84
90
 
85
91
            # Monkey patch ftplib
86
92
            self.putcmd = self.mic_putcmd