Revision ab3e6da8 lib/utils.py
b/lib/utils.py | ||
---|---|---|
1884 | 1884 |
return resu |
1885 | 1885 |
|
1886 | 1886 |
|
1887 |
def CommaJoin(names): |
|
1888 |
"""Nicely join a set of identifiers. |
|
1889 |
|
|
1890 |
@param names: set, list or tuple |
|
1891 |
@return: a string with the formatted results |
|
1892 |
|
|
1893 |
""" |
|
1894 |
return ", ".join(["'%s'" % val for val in names]) |
|
1895 |
|
|
1896 |
|
|
1887 | 1897 |
def BytesToMebibyte(value): |
1888 | 1898 |
"""Converts bytes to mebibytes. |
1889 | 1899 |
|
Also available in: Unified diff