eric6/Utilities/ClassBrowsers/jsclbr.py

changeset 7676
0f67b4562d98
parent 7360
9190402e4505
child 7685
0b6e8c0d6403
equal deleted inserted replaced
7675:7d23e502fe85 7676:0f67b4562d98
311 src = Utilities.readEncodedFile(file)[0] 311 src = Utilities.readEncodedFile(file)[0]
312 except (UnicodeError, IOError): 312 except (UnicodeError, IOError):
313 # can't do anything with this module 313 # can't do anything with this module
314 _modules[module] = dictionary 314 _modules[module] = dictionary
315 return dictionary 315 return dictionary
316 # convert eol markers the Python style
317 src = src.replace("\r\n", "\n").replace("\r", "\n")
316 318
317 visitor = Visitor(src, module, file) 319 visitor = Visitor(src, module, file)
318 dictionary = visitor.parse() 320 dictionary = visitor.parse()
319 _modules[module] = dictionary 321 _modules[module] = dictionary
320 return dictionary 322 return dictionary

eric ide

mercurial