286 src = Utilities.readEncodedFile(file)[0] |
286 src = Utilities.readEncodedFile(file)[0] |
287 except (UnicodeError, IOError): |
287 except (UnicodeError, IOError): |
288 # can't do anything with this module |
288 # can't do anything with this module |
289 _modules[module] = dictionary |
289 _modules[module] = dictionary |
290 return dictionary |
290 return dictionary |
|
291 # convert eol markers the Python style |
|
292 src = src.replace("\r\n", "\n").replace("\r", "\n") |
291 |
293 |
292 lineno, last_lineno_pos = 1, 0 |
294 lineno, last_lineno_pos = 1, 0 |
293 cur_obj = None |
295 cur_obj = None |
294 lastGlobalEntry = None |
296 lastGlobalEntry = None |
295 i = 0 |
297 i = 0 |