~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-19 13:23:58 UTC
  • mto: This revision was merged to the branch mainline in revision 6386.
  • Revision ID: jelmer@canonical.com-20111219132358-uvs5a6y92gomzacd
Move importing from future until after doc string, otherwise the doc string will disappear.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
19
17
"""Progress indicators.
20
18
 
21
19
The usual way to use this is via bzrlib.ui.ui_factory.nested_progress_bar which
22
20
will manage a conceptual stack of nested activities.
23
21
"""
24
22
 
 
23
from __future__ import absolute_import
25
24
 
26
 
import sys
27
25
import time
28
26
import os
29
27
 
30
28
 
31
 
from bzrlib.symbol_versioning import (
32
 
    deprecated_in,
33
 
    deprecated_method,
34
 
    )
35
 
 
36
 
 
37
29
def _supports_progress(f):
38
30
    """Detect if we can use pretty progress bars on file F.
39
31