diff --git a/src/main.cpp b/src/main.cpp index ca204d0a..282d4522 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,5 +56,4 @@ __HELP: return 0; } -#endif - +#endif \ No newline at end of file diff --git a/src/obj.h b/src/obj.h index c934edc3..a504b597 100644 --- a/src/obj.h +++ b/src/obj.h @@ -370,4 +370,4 @@ struct Py_ final: PyObject { }; -} // namespace pkpy +} // namespace pkpy \ No newline at end of file diff --git a/src/pocketpy.h b/src/pocketpy.h index 5373019e..076d2f47 100644 --- a/src/pocketpy.h +++ b/src/pocketpy.h @@ -5,6 +5,7 @@ #include "obj.h" #include "repl.h" #include "iter.h" +#include "base64.h" #include "cffi.h" #include "requests.h" #include "io.h" @@ -920,6 +921,7 @@ inline void VM::post_init(){ add_module_c(this); add_module_gc(this); add_module_random(this); + add_module_base64(this); for(const char* name: {"this", "functools", "collections", "heapq", "bisect"}){ _lazy_modules[name] = kPythonLibs[name]; @@ -1048,6 +1050,4 @@ extern "C" { std::string json = vm->read_output(); return strdup(json.c_str()); } - -} - +} \ No newline at end of file diff --git a/src/str.h b/src/str.h index 72a6235d..bbac8fb4 100644 --- a/src/str.h +++ b/src/str.h @@ -434,4 +434,4 @@ const StrName __and__ = StrName::get("__and__"); const StrName __or__ = StrName::get("__or__"); const StrName __xor__ = StrName::get("__xor__"); -} // namespace pkpy +} // namespace pkpy \ No newline at end of file