diff common/misc.py @ 357:2291a244a887

Added common.string
author Joseph Turian <turian@iro.umontreal.ca>
date Thu, 19 Jun 2008 16:27:02 -0400
parents 430c9e92cd23
children faece52be094
line wrap: on
line diff
--- a/common/misc.py	Thu Jun 19 16:18:37 2008 -0400
+++ b/common/misc.py	Thu Jun 19 16:27:02 2008 -0400
@@ -10,12 +10,6 @@
 
     return +1 if i > 0 else -1
 
-def percent_string(a, b):
-    assert a <= b
-    assert a >= 0
-    assert b > 0
-    return "%s of %s (%.2f%%)" % (a, b, 100.*a/b)
-
 def unique_elements_list_intersection(list1,list2):
     """
     Return the unique elements that are in both list1 and list2