384 src = Utilities.readEncodedFile(file)[0] |
384 src = Utilities.readEncodedFile(file)[0] |
385 except (UnicodeError, IOError): |
385 except (UnicodeError, IOError): |
386 # can't do anything with this module |
386 # can't do anything with this module |
387 _modules[module] = dictionary |
387 _modules[module] = dictionary |
388 return dictionary |
388 return dictionary |
|
389 # convert eol markers the Python style |
|
390 src = src.replace("\r\n", "\n").replace("\r", "\n") |
389 |
391 |
390 lineno, last_lineno_pos = 1, 0 |
392 lineno, last_lineno_pos = 1, 0 |
391 lastGlobalEntry = None |
393 lastGlobalEntry = None |
392 cur_obj = None |
394 cur_obj = None |
393 i = 0 |
395 i = 0 |