8216:6a042a54e0f7 | 8217:385f60c94548 |
---|---|
41 @rtype str | 41 @rtype str |
42 """ | 42 """ |
43 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") | 43 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") |
44 | 44 |
45 if codestring and codestring[-1] != '\n': | 45 if codestring and codestring[-1] != '\n': |
46 codestring = codestring + '\n' | 46 codestring += '\n' |
47 | 47 |
48 return codestring | 48 return codestring |
49 | 49 |
50 | 50 |
51 def jsonSyntaxCheck(file, codestring): | 51 def jsonSyntaxCheck(file, codestring): |