From 11a5adc06df5001d589ddfc80717e0e9586e0b3a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 15 Apr 2012 15:33:39 +0100 Subject: Refactor: change name of _factor to _render This is clearer, and avoids having both format and _format methods. --- ttystatus/status.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ttystatus/status.py b/ttystatus/status.py index 772273b..e45c774 100644 --- a/ttystatus/status.py +++ b/ttystatus/status.py @@ -72,9 +72,9 @@ class TerminalStatus(object): for w in self._widgets: w.update(self) if self._m.time_to_write(): - self._format() + self._render() - def _format(self): + def _render(self): '''Format and output all widgets.''' self._m.write(''.join(str(w) for w in self._widgets)) @@ -92,7 +92,7 @@ class TerminalStatus(object): def finish(self): '''Finish status display.''' - self._format() + self._render() self._m.finish() def disable(self): -- cgit v1.2.1