code: def _print_bar(self):
          '''Print a progress bar.'''
          self._print('[')
  
          for position in range(self._bar_width):
              position_fraction = position / (self._bar_width - 1)
              position_bytes = position_fraction * self.max_value
  
              if position_bytes < (self.continue_value or 0):
                  self._print('+')
              elif position_bytes <= (self.continue_value or 0) + self.current_value:
                  self._print('=')
              else:
                  self._print(' ')
  
          self._print(']'f _print_bar(self):
          '''Print a progress bar.'''
          self._print('[')
  
          for position in range(self._bar_width):
              position_fraction = position / (self._bar_width - 1)
              position_bytes = position_fraction * self.max_value
  
              if position_bytes < (self.continue_value or 0):
                  self._print('+')
              elif position_bytes <= (self.continue_value or 0) + self.current_value:
                  self._print('=')
              else:
                  self._print(' ')
  
          self._print(']')
docs: Print a progress bar.