/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Packman
  • Date: 2011-11-28 17:28:47 UTC
  • mto: This revision was merged to the branch mainline in revision 6328.
  • Revision ID: martin.packman@canonical.com-20111128172847-utjoodrl2vsdvmiy
Remove unneeded mutter over unicode _fmt attributes

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from bzrlib import (
21
21
    osutils,
22
22
    i18n,
23
 
    trace,
24
23
    )
25
24
from bzrlib.i18n import gettext
26
25
 
136
135
        fmt = getattr(self, '_fmt', None)
137
136
        if fmt is not None:
138
137
            i18n.install()
139
 
            unicode_fmt = unicode(fmt) #_fmt strings should be ascii
140
 
            if type(fmt) == unicode:
141
 
                trace.mutter("Unicode strings in error.fmt are deprecated")
142
 
            return gettext(unicode_fmt)
 
138
            return gettext(unicode(fmt)) # _fmt strings should be ascii
143
139
        return 'Unprintable exception %s: dict=%r, fmt=%r' \
144
140
            % (self.__class__.__name__,
145
141
               self.__dict__,