Returns unescaped safe-representation of a given variable name >>> unsafeVariableNaming("EVAL_636c6173732e6964") == "class.id" True
(value)
| 5524 | return value |
| 5525 | |
| 5526 | def unsafeVariableNaming(value): |
| 5527 | """ |
| 5528 | Returns unescaped safe-representation of a given variable name |
| 5529 | |
| 5530 | >>> unsafeVariableNaming("EVAL_636c6173732e6964") == "class.id" |
| 5531 | True |
| 5532 | """ |
| 5533 | |
| 5534 | if value.startswith(EVALCODE_ENCODED_PREFIX): |
| 5535 | value = decodeHex(value[len(EVALCODE_ENCODED_PREFIX):], binary=False) |
| 5536 | |
| 5537 | return value |
| 5538 | |
| 5539 | def firstNotNone(*args): |
| 5540 | """ |