/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/utextwrap.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import textwrap
30
30
from unicodedata import east_asian_width as _eawidth
31
31
 
32
 
from bzrlib import osutils
 
32
from . import osutils
33
33
 
34
34
__all__ = ["UTextWrapper", "fill", "wrap"]
35
35
 
70
70
        else:
71
71
            raise ValueError("ambiguous_width should be 1 or 2")
72
72
 
73
 
        # No drop_whitespace param before Python 2.6 it was always dropped
74
 
        if sys.version_info < (2, 6):
75
 
            self.drop_whitespace = kwargs.pop("drop_whitespace", True)
76
 
            if not self.drop_whitespace:
77
 
                raise ValueError("TextWrapper version must drop whitespace")
78
73
        textwrap.TextWrapper.__init__(self, width, **kwargs)
79
74
 
80
75
    def _unicode_char_width(self, uc):