src/eric7/MicroPython/Devices/DeviceBase.py

branch
eric7
changeset 11183
553b50b72f5b
parent 11177
f511038a0061
child 11186
c2d18aefef6b
equal deleted inserted replaced
11182:0c808c18f4fc 11183:553b50b72f5b
565 @exception OSError raised to indicate an issue with the device 565 @exception OSError raised to indicate an issue with the device
566 """ 566 """
567 command = """ 567 command = """
568 import os as __os_ 568 import os as __os_
569 try: 569 try:
570 __os_.stat({0}) 570 _ = __os_.stat({0})
571 print(True) 571 print(True)
572 except OSError: 572 except OSError:
573 print(False) 573 print(False)
574 del __os_ 574 del __os_
575 """.format( 575 """.format(

eric ide

mercurial