8000 Handle negative time.sleep values by ever0de · Pull Request #5906 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Handle negative time.sleep values #5906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
remove unused imports
  • Loading branch information
ever0de committed Jul 6, 2025
commit 60163b200f71d22088b11ab9d4cb4763e17c0a26
4 changes: 2 additions & 2 deletions vm/src/stdlib/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ unsafe extern "C" {
#[pymodule(name = "time", with(platform))]
mod decl {
use crate::{
PyObjectRef, PyResult, TryFromObject, VirtualMachine, AsObject,
AsObject, PyObjectRef, PyResult, TryFromObject, VirtualMachine,
builtins::{PyStrRef, PyTypeRef},
function::{Either, FuncArgs, OptionalArg},
types::PyStructSequence,
Expand Down Expand Up @@ -552,7 +552,7 @@ mod platform {
use super::decl::{SEC_TO_NS, US_TO_NS};
#[cfg_attr(target_os = "macos", allow(unused_imports))]
use crate::{
AsObject, PyObject, PyObjectRef, PyRef, PyResult, TryFromBorrowedObject, VirtualMachine,
PyObject, PyRef, PyResult, TryFromBorrowedObject, VirtualMachine,
builtins::{PyNamespace, PyStrRef},
convert::IntoPyException,
};
Expand Down
Loading
0