Revision 6915bc28 lib/utils.py
b/lib/utils.py | ||
---|---|---|
1859 | 1859 |
return resu |
1860 | 1860 |
|
1861 | 1861 |
|
1862 |
def CommaJoin(names): |
|
1863 |
"""Nicely join a set of identifiers. |
|
1864 |
|
|
1865 |
@param names: set, list or tuple |
|
1866 |
@return: a string with the formatted results |
|
1867 |
|
|
1868 |
""" |
|
1869 |
return ", ".join(["'%s'" % val for val in names]) |
|
1870 |
|
|
1871 |
|
|
1872 | 1862 |
def BytesToMebibyte(value): |
1873 | 1863 |
"""Converts bytes to mebibytes. |
1874 | 1864 |
|
Also available in: Unified diff