Skip to content

Commit

Permalink
fix(bindings): fixed missing conditional compilation macro on import
Browse files Browse the repository at this point in the history
  • Loading branch information
AurumTheEnd committed Apr 22, 2024
1 parent a1bf951 commit 1e74737
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/table/csv/error.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::io;

use pyo3::exceptions::{PyEOFError, PyIOError, PyRuntimeError, PyTypeError};
use pyo3::PyErr;

use crate::table::display_formatted::ALL_BOOL_STRINGS;

#[cfg(feature = "python")]
use pyo3::PyErr;

// PartialEq and Eq is here due to checks in tests
#[derive(Debug, thiserror::Error)]
pub enum TruthTableFromCsvError {
Expand Down Expand Up @@ -38,6 +38,7 @@ pub enum TruthTableFromCsvError {
#[cfg(feature = "python")]
impl From<TruthTableFromCsvError> for PyErr {
fn from(err: TruthTableFromCsvError) -> PyErr {
use pyo3::exceptions::{PyEOFError, PyIOError, PyRuntimeError, PyTypeError};
use TruthTableFromCsvError::*;

match err {
Expand Down

0 comments on commit 1e74737

Please sign in to comment.