238 src = Utilities.readEncodedFile(file)[0] |
238 src = Utilities.readEncodedFile(file)[0] |
239 except (UnicodeError, IOError): |
239 except (UnicodeError, IOError): |
240 # can't do anything with this module |
240 # can't do anything with this module |
241 _modules[module] = dictionary |
241 _modules[module] = dictionary |
242 return dictionary |
242 return dictionary |
|
243 # convert eol markers the Python style |
|
244 src = src.replace("\r\n", "\n").replace("\r", "\n") |
243 |
245 |
244 lineno, last_lineno_pos = 1, 0 |
246 lineno, last_lineno_pos = 1, 0 |
245 lastGlobalEntry = None |
247 lastGlobalEntry = None |
246 cur_obj = None |
248 cur_obj = None |
247 i = 0 |
249 i = 0 |