changeset 39052 | 38409be2f521 |
parent 39051 | 2aebe138ef6e |
child 39063 | 1419ba5e3b56 |
39051:2aebe138ef6e | 39052:38409be2f521 |
---|---|
112 elif isinstance(r, bytes): |
112 elif isinstance(r, bytes): |
113 return r |
113 return r |
114 elif callable(r): |
114 elif callable(r): |
115 return r() |
115 return r() |
116 else: |
116 else: |
117 return pycompat.byterepr(r) |
117 return pprint(r) |
118 |
118 |
119 def binary(s): |
119 def binary(s): |
120 """return true if a string is binary data""" |
120 """return true if a string is binary data""" |
121 return bool(s and '\0' in s) |
121 return bool(s and '\0' in s) |
122 |
122 |