diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-06-23 22:59:04 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:26 +0100 |
commit | 1cf6e14a6c5ddb4daec1c1e0cce113eea8570545 (patch) | |
tree | b24af53ea6048aa6d441b10cf96ea633a7936d5d /bitbake/lib/progressbar/__init__.py | |
parent | 481048cd2a64a08501bb5ea7ec0bc9ef0a9a5cc9 (diff) | |
download | poky-1cf6e14a6c5ddb4daec1c1e0cce113eea8570545.tar.gz |
bitbake: knotty: import latest python-progressbar
Since we're going to make some minor extensions to it, it makes sense to
bring in the latest version of python-progressbar. Its structure has
changed a little but the API hasn't; however we do need to ensure our
overridden _needs_update() function's signature in BBProgress() matches
properly.
(Bitbake rev: c3e51d71b36cbc9e9ed1b35fb93d0978e24bc98a)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/progressbar/__init__.py')
-rw-r--r-- | bitbake/lib/progressbar/__init__.py | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/bitbake/lib/progressbar/__init__.py b/bitbake/lib/progressbar/__init__.py new file mode 100644 index 0000000000..fbab744ee2 --- /dev/null +++ b/bitbake/lib/progressbar/__init__.py | |||
@@ -0,0 +1,49 @@ | |||
1 | #!/usr/bin/python | ||
2 | # -*- coding: utf-8 -*- | ||
3 | # | ||
4 | # progressbar - Text progress bar library for Python. | ||
5 | # Copyright (c) 2005 Nilton Volpato | ||
6 | # | ||
7 | # This library is free software; you can redistribute it and/or | ||
8 | # modify it under the terms of the GNU Lesser General Public | ||
9 | # License as published by the Free Software Foundation; either | ||
10 | # version 2.1 of the License, or (at your option) any later version. | ||
11 | # | ||
12 | # This library is distributed in the hope that it will be useful, | ||
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | # Lesser General Public License for more details. | ||
16 | # | ||
17 | # You should have received a copy of the GNU Lesser General Public | ||
18 | # License along with this library; if not, write to the Free Software | ||
19 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
20 | |||
21 | """Text progress bar library for Python. | ||
22 | |||
23 | A text progress bar is typically used to display the progress of a long | ||
24 | running operation, providing a visual cue that processing is underway. | ||
25 | |||
26 | The ProgressBar class manages the current progress, and the format of the line | ||
27 | is given by a number of widgets. A widget is an object that may display | ||
28 | differently depending on the state of the progress bar. There are three types | ||
29 | of widgets: | ||
30 | - a string, which always shows itself | ||
31 | |||
32 | - a ProgressBarWidget, which may return a different value every time its | ||
33 | update method is called | ||
34 | |||
35 | - a ProgressBarWidgetHFill, which is like ProgressBarWidget, except it | ||
36 | expands to fill the remaining width of the line. | ||
37 | |||
38 | The progressbar module is very easy to use, yet very powerful. It will also | ||
39 | automatically enable features like auto-resizing when the system supports it. | ||
40 | """ | ||
41 | |||
42 | __author__ = 'Nilton Volpato' | ||
43 | __author_email__ = 'first-name dot last-name @ gmail.com' | ||
44 | __date__ = '2011-05-14' | ||
45 | __version__ = '2.3' | ||
46 | |||
47 | from .compat import * | ||
48 | from .widgets import * | ||
49 | from .progressbar import * | ||