eric6/Utilities/__init__.py

changeset 7186
ccd55666e9d2
parent 7098
fbdf76af88ed
child 7192
a22eee00b052
equal deleted inserted replaced
7185:af8e89a7a51d 7186:ccd55666e9d2
1603 @param source of the file (str) 1603 @param source of the file (str)
1604 @keyparam editor reference to the editor, if the file is opened 1604 @keyparam editor reference to the editor, if the file is opened
1605 already (Editor object) 1605 already (Editor object)
1606 @return Python version if file is Python2 or Python3 (int) 1606 @return Python version if file is Python2 or Python3 (int)
1607 """ 1607 """
1608 pyAssignment = {"Python": 2, "Python2": 2, "Python3": 3} 1608 pyAssignment = {
1609 "Python": 2,
1610 "Python2": 2,
1611 "Python3": 3,
1612 "MicroPython": 3,
1613 }
1609 1614
1610 if not editor: 1615 if not editor:
1611 viewManager = e5App().getObject('ViewManager') 1616 viewManager = e5App().getObject('ViewManager')
1612 editor = viewManager.getOpenEditor(filename) 1617 editor = viewManager.getOpenEditor(filename)
1613 1618

eric ide

mercurial