Skip to content

Commit

Permalink
Minor fix for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Mar 6, 2019
1 parent f7381cb commit 193137d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions enlighten/_counter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2017 - 2018 Avram Lubkin, All Rights Reserved
# Copyright 2017 - 2019 Avram Lubkin, All Rights Reserved

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -353,12 +353,14 @@ def format(self, width=None, elapsed=None):
if barLen < barWidth:
partial = self.series[int(round((complete - barLen) * (len(self.series) - 1)))]
fill = self.series[0] * (barWidth - barLen - 1)
return rtn.format(u'{0}{1}{2}'.format(self.series[-1] * barLen, partial, fill))
rtn = rtn.format(u'{0}{1}{2}'.format(self.series[-1] * barLen, partial, fill))

else:
fields['fill'] = u'{0}'
rtn = self.counter_format.format(**fields)
return rtn.format(u' ' * (width - len(rtn) + 3))
rtn = rtn.format(u' ' * (width - len(rtn) + 3))

return rtn

def refresh(self, flush=True, elapsed=None):
"""
Expand Down

0 comments on commit 193137d

Please sign in to comment.