kopia lustrzana https://github.com/micropython/micropython-lib
os: Add os.error as an alias for OSError.
rodzic
a976583b6b
commit
245ece80fe
|
@ -26,6 +26,8 @@ X_OK = const(1)
|
|||
F_OK = const(0)
|
||||
|
||||
|
||||
error = OSError
|
||||
|
||||
def check_error(ret):
|
||||
if ret == -1:
|
||||
raise OSError(errno_.get())
|
||||
|
|
Ładowanie…
Reference in New Issue