Skip to content

Commit

Permalink
datetime: remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Feb 13, 2021
1 parent 0e4889f commit 0665222
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/types/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,7 @@ impl PyTimeAccess for PyTime {

#[cfg(not(PyPy))]
fn get_fold(&self) -> bool {
// TODO: Python's fold values must be either 0 or 1 as per Python documentation. Should we
// panic if they do, for whatever reason, fall outside that range?
unsafe { PyDateTime_TIME_GET_FOLD(self.as_ptr()) > 0 }
unsafe { PyDateTime_TIME_GET_FOLD(self.as_ptr()) != 0 }
}
}

Expand Down

0 comments on commit 0665222

Please sign in to comment.