Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Removing whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Oct 19, 2014
1 parent dc911ab commit 949331d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions etaprogress/components/eta_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@


def eta_hms(seconds, always_show_hours=False, always_show_minutes=False, hours_leading_zero=False):
"""Converts seconds remaining into a human readable timestamp (e.g. hh:mm:ss, h:mm:ss, mm:ss, or ss).
"""Converts seconds remaining into a human readable timestamp (e.g. hh:mm:ss, h:mm:ss, mm:ss, or ss).
Positional arguments:
seconds -- integer/float indicating seconds remaining.
Keyword arguments:
always_show_hours -- don't hide the 0 hours.
always_show_minutes -- don't hide the 0 minutes.
hours_leading_zero -- show 01:00:00 instead of 1:00:00.
Returns:
Human readable string.
"""
Expand Down
6 changes: 3 additions & 3 deletions tests/test_components_bars_undefined.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ def fin():
BarUndefinedEmpty.CHAR_LEFT_BORDER = '['
BarUndefinedEmpty.CHAR_RIGHT_BORDER = ']'
request.addfinalizer(fin)

bar = BarUndefinedEmpty()
assert '[ ]' == bar.bar(10)
assert '[ ]' == bar.bar(15)

BarUndefinedEmpty.CHAR_LEFT_BORDER = '[['
BarUndefinedEmpty.CHAR_RIGHT_BORDER = ']]'
bar = BarUndefinedEmpty()
Expand Down Expand Up @@ -65,7 +65,7 @@ def fin():
BarUndefinedAnimated.CHAR_RIGHT_BORDER = ']>'
BarUndefinedAnimated.CHAR_ANIMATED = '<?>'
bar = BarUndefinedAnimated()

assert '<[<?> ]>' == bar.bar(10)
assert '<[ <?> ]>' == bar.bar(10)
assert '<[ <?> ]>' == bar.bar(10)
Expand Down

0 comments on commit 949331d

Please sign in to comment.