Fix objset compilation error caused by merge race.

This commit is contained in:
Adam Kelly committed 2019-03-25 20:37:47 +00:00
1 parent cac9da4c35
commit 17b816fbf8
1 file changed
+2
+2
View File
@@ -86,11 +86,13 @@ fn create_set(
elements: RefCell::new(elements),
},
PySet::class(vm),
None,
))
} else if objtype::issubclass(&cls, &vm.ctx.frozenset_type()) {
Ok(PyObject::new(
PyFrozenSet { elements: elements },
PyFrozenSet::class(vm),
None,
))
} else {
Err(vm.new_type_error(format!("{} is not a subtype of set or frozenset", cls)))