~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Martin Pool
  • Date: 2008-12-16 07:56:29 UTC
  • mto: (3882.7.11 progress)
  • mto: This revision was merged to the branch mainline in revision 3940.
  • Revision ID: mbp@sourcefrog.net-20081216075629-zhgjzxgoh32453tu
Choose the UIFactory class depending on the terminal capabilities

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    def __init__(self,
44
44
                 bar_type=None,
 
45
                 stdin=None,
45
46
                 stdout=None,
46
47
                 stderr=None):
47
48
        """Create a TextUIFactory.
50
51
                         letting the bzrlib.progress.ProgressBar factory auto
51
52
                         select.   Deprecated.
52
53
        """
53
 
        super(TextUIFactory, self).__init__()
54
 
        if stdout is None:
55
 
            self.stdout = sys.stdout
56
 
        else:
57
 
            self.stdout = stdout
58
 
        if stderr is None:
59
 
            self.stderr = sys.stderr
60
 
        else:
61
 
            self.stderr = stderr
 
54
        super(TextUIFactory, self).__init__(stdin=stdin,
 
55
                stdout=stdout, stderr=stderr)
62
56
        if bar_type:
63
57
            symbol_versioning.warn(symbol_versioning.deprecated_in((1, 11, 0))
64
58
                % "bar_type parameter")