228 src = Utilities.readEncodedFile(file)[0] |
228 src = Utilities.readEncodedFile(file)[0] |
229 except (UnicodeError, IOError): |
229 except (UnicodeError, IOError): |
230 # can't do anything with this module |
230 # can't do anything with this module |
231 _modules[module] = dictionary |
231 _modules[module] = dictionary |
232 return dictionary |
232 return dictionary |
|
233 # convert eol markers the Python style |
|
234 src = src.replace("\r\n", "\n").replace("\r", "\n") |
233 |
235 |
234 lineno, last_lineno_pos = 1, 0 |
236 lineno, last_lineno_pos = 1, 0 |
235 lastGlobalEntry = None |
237 lastGlobalEntry = None |
236 cur_obj = None |
238 cur_obj = None |
237 i = 0 |
239 i = 0 |