Skip to content

Commit

Permalink
Add a separator argument.
Browse files Browse the repository at this point in the history
[Exported from 8d2c9ddfa968b5e0ac1542320ce87452dca6fa16]
  • Loading branch information
ChrisCummins committed Aug 22, 2019
1 parent c59a251 commit 2965971
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions labm8/py/humanize.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,18 @@ def AddIndefiniteArticle(noun):
return "a " + noun


<<<<<<< HEAD:labm8/py/humanize.py
def DecimalPrefix(
quantity, unit, precision=1, min_scale=0, max_scale=None, separator=" "
):
=======
def DecimalPrefix(quantity,
unit,
precision=1,
min_scale=0,
max_scale=None,
separator=' '):
>>>>>>> 8d2c9ddfa... Add a separator argument.:labm8/humanize.py
"""Formats an integer and a unit into a string, using decimal prefixes.
The unit will be prefixed with an appropriate multiplier such that
Expand Down Expand Up @@ -274,14 +283,19 @@ def DecimalPrefix(
quantity,
unit,
precision,
separator,
DecimalScale,
min_scale=min_scale,
max_scale=max_scale,
)
>>>>>>> 49340dc00... Auto-format labm8 python files.:labm8/humanize.py


<<<<<<< HEAD:labm8/py/humanize.py
def BinaryPrefix(quantity, unit, precision=1, separator=" "):
=======
def BinaryPrefix(quantity, unit, precision=1, separator=' '):
>>>>>>> 8d2c9ddfa... Add a separator argument.:labm8/humanize.py
"""Formats an integer and a unit into a string, using binary prefixes.
The unit will be prefixed with an appropriate multiplier such that
Expand Down

0 comments on commit 2965971

Please sign in to comment.