projects
/
mussorgsky
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added test for mutagen. Included 3 sec. files in different formats
[mussorgsky]
/
src
/
utils.py
diff --git
a/src/utils.py
b/src/utils.py
index
ae3a4ad
..
daffb06
100644
(file)
--- a/
src/utils.py
+++ b/
src/utils.py
@@
-8,6
+8,8
@@
def escape_html (text, max_length=40):
text = text [0:cutpoint] + "..."
return gobject.markup_escape_text (text)
text = text [0:cutpoint] + "..."
return gobject.markup_escape_text (text)
+def is_empty (text):
+ return not text or len (text.strip ()) == 0
# Set socket timeout
import socket
# Set socket timeout
import socket