Skip to content

Commit a6cac28

Browse files
committed
Work around a CWPro7.2 bug with ?:
[SVN r15076]
1 parent 2566b87 commit a6cac28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object/class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ namespace objects
269269

270270
object module_name(
271271
PyObject_IsInstance(scope().ptr(), upcast<PyObject>(&PyModule_Type))
272-
? scope().attr("__name__")
272+
? object(scope().attr("__name__"))
273273
: api::getattr(scope(), "__module__", object(""))
274274
);
275275

0 commit comments

Comments
 (0)