From 1afa494e69e3c8af3dd5d1685b9cd2b1d3bea4d0 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 26 Nov 2020 18:08:19 +0000 Subject: [PATCH] clangformat Signed-off-by: David Shah --- common/pybindings.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/pybindings.h b/common/pybindings.h index 2645f8cd..e50ffd1b 100644 --- a/common/pybindings.h +++ b/common/pybindings.h @@ -23,8 +23,8 @@ #include #include -#include #include +#include #include #include #include "pycontainers.h" @@ -36,7 +36,6 @@ NEXTPNR_NAMESPACE_BEGIN namespace py = pybind11; - std::string parse_python_exception(); template void python_export_global(const char *name, Tn &x) @@ -44,7 +43,7 @@ template void python_export_global(const char *name, Tn &x) try { py::object obj = py::cast(x, py::return_value_policy::reference); py::module::import("__main__").attr(name) = obj.ptr(); - } catch (pybind11::error_already_set &) { + } catch (pybind11::error_already_set &) { // Parse and output the exception std::string perror_str = parse_python_exception(); std::cout << "Error in Python: " << perror_str << std::endl;