mirror of
https://github.com/pocketpy/pocketpy
synced 2026-08-11 16:47:10 +08:00
Compare commits
No commits in common. "7baf64e67c7c88f736aff9a3329c69fe4723a137" and "71f06c4ff1c80e015c3da7b97da439815ca0c80f" have entirely different histories.
7baf64e67c
...
71f06c4ff1
@ -864,7 +864,6 @@ enum py_PredefinedType {
|
|||||||
tp_SyntaxError,
|
tp_SyntaxError,
|
||||||
tp_RecursionError,
|
tp_RecursionError,
|
||||||
tp_OSError,
|
tp_OSError,
|
||||||
tp_PermissionError,
|
|
||||||
tp_NotImplementedError,
|
tp_NotImplementedError,
|
||||||
tp_TypeError,
|
tp_TypeError,
|
||||||
tp_IndexError,
|
tp_IndexError,
|
||||||
|
|||||||
@ -195,7 +195,6 @@ void VM__ctor(VM* self) {
|
|||||||
INJECT_BUILTIN_EXC(SyntaxError, tp_Exception);
|
INJECT_BUILTIN_EXC(SyntaxError, tp_Exception);
|
||||||
INJECT_BUILTIN_EXC(RecursionError, tp_Exception);
|
INJECT_BUILTIN_EXC(RecursionError, tp_Exception);
|
||||||
INJECT_BUILTIN_EXC(OSError, tp_Exception);
|
INJECT_BUILTIN_EXC(OSError, tp_Exception);
|
||||||
INJECT_BUILTIN_EXC(PermissionError, tp_Exception);
|
|
||||||
INJECT_BUILTIN_EXC(NotImplementedError, tp_Exception);
|
INJECT_BUILTIN_EXC(NotImplementedError, tp_Exception);
|
||||||
INJECT_BUILTIN_EXC(TypeError, tp_Exception);
|
INJECT_BUILTIN_EXC(TypeError, tp_Exception);
|
||||||
INJECT_BUILTIN_EXC(IndexError, tp_Exception);
|
INJECT_BUILTIN_EXC(IndexError, tp_Exception);
|
||||||
|
|||||||
@ -48,7 +48,6 @@ static bool os_chdir(int argc, py_Ref argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool os_getcwd(int argc, py_Ref argv) {
|
static bool os_getcwd(int argc, py_Ref argv) {
|
||||||
PY_CHECK_ARGC(0);
|
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
if(!platform_getcwd(buf, sizeof(buf))) return OSError("getcwd() failed");
|
if(!platform_getcwd(buf, sizeof(buf))) return OSError("getcwd() failed");
|
||||||
py_newstr(py_retval(), buf);
|
py_newstr(py_retval(), buf);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user