We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b039967 commit 33586a4Copy full SHA for 33586a4
mypyc/codegen/emitfunc.py
@@ -913,6 +913,10 @@ def emit_unsigned_int_cast(self, type: RType) -> str:
913
914
915
def encode_c_string_literal(b: bytes) -> str:
916
+ """Convert bytestring to the C string literal syntax (with necessary escaping).
917
+
918
+ For example, b'foo\n' gets coverted to 'foo\\n' (note that double quotes are not added).
919
+ """
920
if not _translation_table:
921
# Initialize the translation table on the first call.
922
d = {
0 commit comments