Commit 96ad4034 authored by Chris Toshok's avatar Chris Toshok

after adding these modules, virtualenv_test now tries to access file.mode,...

after adding these modules, virtualenv_test now tries to access file.mode, which we hadn't exposed before.
parent d0bd0863
......@@ -1784,6 +1784,8 @@ void setupFile() {
new BoxedMemberDescriptor(BoxedMemberDescriptor::INT, offsetof(BoxedFile, f_softspace), false));
file_cls->giveAttr("name",
new BoxedMemberDescriptor(BoxedMemberDescriptor::OBJECT, offsetof(BoxedFile, f_name), true));
file_cls->giveAttr("mode",
new BoxedMemberDescriptor(BoxedMemberDescriptor::OBJECT, offsetof(BoxedFile, f_mode), true));
file_cls->giveAttr("__new__", new BoxedFunction(boxRTFunction((void*)fileNew, UNKNOWN, 4, 2, false, false),
{ boxString("r"), boxInt(-1) }));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment