Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix _hashlib
  • Loading branch information
youknowone committed Feb 14, 2026
commit 12db02eaf0f6d7451e02d9a529ba0cd93dd8eca0
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3717,7 +3717,7 @@ impl Compiler {
// Compile kwdefaults and build dict
for (arg, default) in &kw_with_defaults {
self.emit_load_const(ConstantData::Str {
value: arg.name.as_str().into(),
value: self.mangle(arg.name.as_str()).into_owned().into(),
});
self.compile_expression(default)?;
}
Expand Down Expand Up @@ -6983,7 +6983,7 @@ impl Compiler {
let default_kw_count = kw_with_defaults.len();
for (arg, default) in &kw_with_defaults {
self.emit_load_const(ConstantData::Str {
value: arg.name.as_str().into(),
value: self.mangle(arg.name.as_str()).into_owned().into(),
});
self.compile_expression(default)?;
}
Expand Down
4 changes: 3 additions & 1 deletion crates/stdlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ rand_core = { workspace = true }
mt19937 = "3.1"

# Crypto:
digest = "0.10.3"
digest = "0.10.7"
md-5 = "0.10.1"
sha-1 = "0.10.0"
sha2 = "0.10.2"
sha3 = "0.10.1"
blake2 = "0.10.4"
hmac = "0.12"
pbkdf2 = { version = "0.12", features = ["hmac"] }
Comment thread
coderabbitai[bot] marked this conversation as resolved.

## unicode stuff
unicode_names2 = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/stdlib/src/blake2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ mod _blake2 {

#[pyfunction]
fn blake2b(args: BlakeHashArgs, vm: &VirtualMachine) -> PyResult {
Ok(local_blake2b(args).into_pyobject(vm))
Ok(local_blake2b(args, vm)?.into_pyobject(vm))
}

#[pyfunction]
fn blake2s(args: BlakeHashArgs, vm: &VirtualMachine) -> PyResult {
Ok(local_blake2s(args).into_pyobject(vm))
Ok(local_blake2s(args, vm)?.into_pyobject(vm))
}
}
Loading
Loading