mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Remove duplicate generic_getattr in builtins::object
Signed-off-by: snowapril <sinjihng@gmail.com>
This commit is contained in:
1 parent
09f7d92cb9
commit
df666dd217
2 files changed
-5
No files matched your search
@@ -330,10 +330,6 @@ pub fn object_set_dict(obj: PyObjectRef, dict: PyDictRef, vm: &VirtualMachine) -
|
||||
.map_err(|_| vm.new_attribute_error("This object has no __dict__".to_owned()))
|
||||
}
|
||||
|
||||
pub fn generic_getattr(obj: PyObjectRef, attr_name: PyStrRef, vm: &VirtualMachine) -> PyResult {
|
||||
obj.as_object().generic_getattr(attr_name, vm)
|
||||
}
|
||||
|
||||
pub fn init(ctx: &Context) {
|
||||
PyBaseObject::extend_class(ctx, &ctx.types.object_type);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
pub use crate::builtins::object::generic_getattr;
|
||||
use crate::common::{hash::PyHash, lock::PyRwLock};
|
||||
use crate::{
|
||||
builtins::{PyInt, PyStrRef, PyType, PyTypeRef},
|
||||
|
||||
Reference in new issue
Block a user