/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/email_message.py

  • Committer: Benoît Pierre
  • Date: 2011-10-23 13:53:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6231.
  • Revision ID: benoit.pierre@gmail.com-20111023135319-7pc4e0sbmhp6ax96
Change upgrade code: already up-to-date exceptions are not treated as errors.

Such cases will be treated as successful updates: no error trace, just a note
to the user.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
    def string_with_encoding(string_):
182
182
        """Return a str object together with an encoding.
183
183
 
184
 
        :param string_: A str or unicode object.
 
184
        :param string\\_: A str or unicode object.
185
185
        :return: A tuple (str, encoding), where encoding is one of 'ascii',
186
186
            'utf-8', or '8-bit', in that preferred order.
187
187
        """