Convert ordinal to unicode. Note, in the original Javascript two string characters were required, for codepoints larger than `0xFFFF`. But Python 3 can represent any unicode codepoint in one character.
(c: int)
| 76 | |
| 77 | |
| 78 | def fromCodePoint(c: int) -> str: |
| 79 | """Convert ordinal to unicode. |
| 80 | |
| 81 | Note, in the original Javascript two string characters were required, |
| 82 | for codepoints larger than `0xFFFF`. |
| 83 | But Python 3 can represent any unicode codepoint in one character. |
| 84 | """ |
| 85 | return chr(c) |
| 86 | |
| 87 | |
| 88 | # UNESCAPE_MD_RE = re.compile(r'\\([!"#$%&\'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])') |
no outgoing calls
no test coverage detected
searching dependent graphs…