Prepares (possibly hex-encoded) partial content for safe console output
(value)
| 282 | return retVal |
| 283 | |
| 284 | def _formatPartialContent(value): |
| 285 | """ |
| 286 | Prepares (possibly hex-encoded) partial content for safe console output |
| 287 | """ |
| 288 | |
| 289 | if value and isinstance(value, six.string_types): |
| 290 | try: |
| 291 | value = decodeHex(value, binary=False) |
| 292 | except: |
| 293 | pass |
| 294 | finally: |
| 295 | value = safecharencode(value) |
| 296 | |
| 297 | return value |
| 298 | |
| 299 | def errorUse(expression, dump=False): |
| 300 | """ |
no test coverage detected
searching dependent graphs…