replaces javascript keywords true, false, null with Python keywords
(txt)
| 534 | |
| 535 | |
| 536 | def fix_keywords(txt): |
| 537 | """ |
| 538 | replaces javascript keywords true, false, null with Python keywords |
| 539 | """ |
| 540 | fix_word = {"true": "True", "false": "False", "null": "None"} |
| 541 | for js_keyword, python_keyword in fix_word.items(): |
| 542 | txt = txt.replace(js_keyword, python_keyword) |
| 543 | return txt |
| 544 | |
| 545 | |
| 546 | # pylint: disable=too-many-arguments |
no outgoing calls
no test coverage detected
searching dependent graphs…