Skip to content
Snippets Groups Projects
Commit 8e176158 authored by Santiago Torres-Arias's avatar Santiago Torres-Arias Committed by Chris Lamb
Browse files

diffoscope.progress: Support the new fork of python-progressbar. (Closes: #873157)


Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent 355ea40e
No related branches found
No related tags found
No related merge requests found
......@@ -191,9 +191,15 @@ class ProgressBar(object):
def __init__(self):
import progressbar
try:
from progressbar.widgets import WidgetBase
except ImportError:
# Fallback to the older Debian version
from progressbar import Widget as WidgetBase
self.msg = ""
class Message(progressbar.Widget):
class Message(WidgetBase):
def update(self, pbar, _observer=self):
msg = _observer.msg
width = 25
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment