Commit 8e176158 authored by Santiago Torres-Arias's avatar Santiago Torres-Arias Committed by Chris Lamb

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

Signed-off-by: Chris Lamb's avatarChris Lamb <>
parent 355ea40e
......@@ -191,9 +191,15 @@ class ProgressBar(object):
def __init__(self):
import progressbar
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment