Skip to content

Commit

Permalink
Use compare instead of lt
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 31, 2022
1 parent 74517b9 commit 991c842
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ where
.import("sys")?
.getattr("implementation")?
.getattr("version")?;
if version.lt(crate::types::PyTuple::new(py, &PYPY_GOOD_VERSION))? {
if version.compare(crate::types::PyTuple::new(py, &PYPY_GOOD_VERSION))?
== std::cmp::Ordering::Less
{
let warn = py.import("warnings")?.getattr("warn")?;
warn.call1((
"PyPy 3.7 versions older than 7.3.8 are known to have binary \
Expand Down

0 comments on commit 991c842

Please sign in to comment.