~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Alexander Belchenko
  • Date: 2008-03-02 16:54:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3267.
  • Revision ID: bialix@ukr.net-20080302165419-2u0r0ogn1h7s4gib
because every mail client has different rules to compose command line we should encode arguments to 8 bit string only when needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2576
2576
 
2577
2577
    def __init__(self, timezone):
2578
2578
        self.timezone = timezone
 
2579
 
 
2580
 
 
2581
class UnableEncodePath(BzrError):
 
2582
 
 
2583
    _fmt = ('Unable encode %(kind)s path %(path)r in '
 
2584
            'user encoding %(user_encoding)s')
 
2585
 
 
2586
    def __init__(self, path, kind):
 
2587
        self.path = path
 
2588
        self.kind = kind
 
2589
        self.user_encoding = osutils.get_user_encoding()