mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
formatting
This commit is contained in:
1 parent
f4b54082cf
commit
ab3862d7f4
1 file changed
+4
-1
+4
-1
@@ -612,7 +612,10 @@ impl ExecutingFrame<'_> {
|
||||
if fastlocals[idx].is_none() {
|
||||
return Err(vm.new_exception_msg(
|
||||
vm.ctx.exceptions.unbound_local_error.to_owned(),
|
||||
format!("local variable '{}' referenced before assignment", self.code.varnames[idx]),
|
||||
format!(
|
||||
"local variable '{}' referenced before assignment",
|
||||
self.code.varnames[idx]
|
||||
),
|
||||
));
|
||||
}
|
||||
fastlocals[idx] = None;
|
||||
|
||||
Reference in new issue
Block a user