Show More
@@ -223,9 +223,7 b' def filter(s, cmd):' | |||||
223 |
|
223 | |||
224 | def binary(s): |
|
224 | def binary(s): | |
225 | """return true if a string is binary data""" |
|
225 | """return true if a string is binary data""" | |
226 |
|
|
226 | return bool(s and '\0' in s) | |
227 | return True |
|
|||
228 | return False |
|
|||
229 |
|
227 | |||
230 | def unique(g): |
|
228 | def unique(g): | |
231 | """return the uniq elements of iterable g""" |
|
229 | """return the uniq elements of iterable g""" |
General Comments 0
You need to be logged in to leave comments.
Login now