(newInput)
| 605 | cprintc(utf8errors, " UTF-8 incompatible passwords skipped", "cyan") |
| 606 | |
| 607 | def castInput(newInput): |
| 608 | if "{" in str(newInput): |
| 609 | try: |
| 610 | jsonInput = json.loads(newInput) |
| 611 | return jsonInput |
| 612 | except ValueError: |
| 613 | pass |
| 614 | if "\"" in str(newInput): |
| 615 | return newInput.strip("\"") |
| 616 | elif newInput == "True" or newInput == "true": |
| 617 | return True |
| 618 | elif newInput == "False" or newInput == "false": |
| 619 | return False |
| 620 | elif newInput == "null": |
| 621 | return None |
| 622 | else: |
| 623 | try: |
| 624 | numInput = float(newInput) |
| 625 | try: |
| 626 | intInput = int(newInput) |
| 627 | return intInput |
| 628 | except: |
| 629 | return numInput |
| 630 | except: |
| 631 | return str(newInput) |
| 632 | return newInput |
| 633 | |
| 634 | def buildSubclaim(newVal, claimList, selection): |
| 635 | while True: |
no outgoing calls
no test coverage detected