summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 7548a937..8738a501 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -312,6 +312,10 @@ def print_critical_message(msg):
print('\n\n\n')
+def percent(part, whole):
+ return round(100 * float(part)/float(whole), 1)
+
+
class bcolors:
BOLD = '\033[1m'
UNDERLINE = '\033[4m'