58 @return normalized code (string) |
58 @return normalized code (string) |
59 """ |
59 """ |
60 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") |
60 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") |
61 |
61 |
62 if codestring and codestring[-1] != '\n': |
62 if codestring and codestring[-1] != '\n': |
63 codestring = codestring + '\n' |
63 codestring += '\n' |
64 |
64 |
65 return codestring |
65 return codestring |
66 |
66 |
67 |
67 |
68 def extractLineFlags(line, startComment="#", endComment="", flagsLine=False): |
68 def extractLineFlags(line, startComment="#", endComment="", flagsLine=False): |