Fix a couple of string output issues

This commit is contained in:
Michael Hansen
2011-10-23 19:33:24 -07:00
parent f030a77767
commit b99f0acfb3
3 changed files with 4 additions and 2 deletions

View File

@@ -107,6 +107,8 @@ void OutputString(PycRef<PycString> str, char prefix, bool triple, FILE* F)
fprintf(F, "\\'");
else if (useQuotes && *ch == '"')
fprintf(F, "\\\"");
else if (*ch == '\\')
fprintf(F, "\\\\");
else
fputc(*ch, F);
}