[Git][NTPsec/ntpsec][unit-rewrite] Added rescalestring() docstring.

Ian Bruene gitlab at mg.gitlab.com
Sun Apr 9 21:47:30 UTC 2017


Ian Bruene pushed to branch unit-rewrite at NTPsec / ntpsec


Commits:
9886edee by Ian Bruene at 2017-04-09T16:47:04-05:00
Added rescalestring() docstring.

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -182,6 +182,7 @@ def oomsbetweenunits(a, b):
 
 
 def rescalestring(value, unitsscaled):
+    "Rescale a number string by a given number of units"
     if unitsscaled == 0:
         return value
     negative = False



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9886edeed0573b421be43fbdeb2e0bc373122b7f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170409/9ceb53b0/attachment.html>


More information about the vc mailing list