def _format_line(self):
        'Joins the widgets and justifies the line'

        widgets = ''.join(self._format_widgets())

        if self.left_justify:
            return widgets.ljust(self.term_width)
        else:
            return widgets.rjust(self.term_width)
Joins the widgets and justifies the line
metadrive/render_pipeline/rplibs/progressbar/__init__.py