diff --git a/progressbar/compat.py b/progressbar/compat.py index de99344..a39f4a1 100644 --- a/progressbar/compat.py +++ b/progressbar/compat.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # # progressbar - Text progress bar library for Python. diff --git a/progressbar/progressbar.py b/progressbar/progressbar.py index 5048d14..5d88988 100644 --- a/progressbar/progressbar.py +++ b/progressbar/progressbar.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # # progressbar - Text progress bar library for Python. @@ -262,6 +261,7 @@ def update(self, value=None): self.seconds_elapsed = now - self.start_time self.next_update = self.currval + self.update_interval self.fd.write(self._format_line() + '\r') + self.fd.flush() self.last_update_time = now diff --git a/progressbar/widgets.py b/progressbar/widgets.py index d14a383..4ec2474 100644 --- a/progressbar/widgets.py +++ b/progressbar/widgets.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # # progressbar - Text progress bar library for Python.