Commit 5078c462 authored by Kevin Modzelewski's avatar Kevin Modzelewski

'import os' now doesn't crash

parent ddb2721f
......@@ -6874,9 +6874,9 @@ extern "C" Box* importStar(Box* _from_module, Box* to_globals) {
AUTO_DECREF(attr_name);
attr_name = coerceUnicodeToStr<CXX>(attr_name);
AUTO_DECREF(attr_name);
if (attr_name->cls != str_cls) {
AUTO_DECREF(attr_name);
raiseExcHelper(TypeError, "attribute name must be string, not '%s'", getTypeName(attr_name));
}
......
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