[libcamera-devel,v2,03/13] py: pymain: fix indent
diff mbox series

Message ID 20220517143325.71784-4-tomi.valkeinen@ideasonboard.com
State Superseded
Headers show
Series
  • Misc Python bindings patches
Related show

Commit Message

Tomi Valkeinen May 17, 2022, 2:33 p.m. UTC
Fix two minor mis-indents.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/py/libcamera/pymain.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kieran Bingham May 17, 2022, 4:22 p.m. UTC | #1
Quoting Tomi Valkeinen (2022-05-17 15:33:15)
> Fix two minor mis-indents.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  src/py/libcamera/pymain.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/py/libcamera/pymain.cpp b/src/py/libcamera/pymain.cpp
> index fb89975c..af22205e 100644
> --- a/src/py/libcamera/pymain.cpp
> +++ b/src/py/libcamera/pymain.cpp
> @@ -394,7 +394,7 @@ PYBIND11_MODULE(_libcamera, m)
>         pyStreamConfiguration
>                 .def("__str__", &StreamConfiguration::toString)
>                 .def_property_readonly("stream", &StreamConfiguration::stream,
> -                                      py::return_value_policy::reference_internal)
> +                                      py::return_value_policy::reference_internal)
>                 .def_property(
>                         "size",
>                         [](StreamConfiguration &self) {
> @@ -416,7 +416,7 @@ PYBIND11_MODULE(_libcamera, m)
>                 .def_readwrite("frame_size", &StreamConfiguration::frameSize)
>                 .def_readwrite("buffer_count", &StreamConfiguration::bufferCount)
>                 .def_property_readonly("formats", &StreamConfiguration::formats,
> -                                      py::return_value_policy::reference_internal)
> +                                      py::return_value_policy::reference_internal)
>                 .def_readwrite("color_space", &StreamConfiguration::colorSpace);
>  
>         pyStreamFormats
> -- 
> 2.34.1
>

Patch
diff mbox series

diff --git a/src/py/libcamera/pymain.cpp b/src/py/libcamera/pymain.cpp
index fb89975c..af22205e 100644
--- a/src/py/libcamera/pymain.cpp
+++ b/src/py/libcamera/pymain.cpp
@@ -394,7 +394,7 @@  PYBIND11_MODULE(_libcamera, m)
 	pyStreamConfiguration
 		.def("__str__", &StreamConfiguration::toString)
 		.def_property_readonly("stream", &StreamConfiguration::stream,
-		                       py::return_value_policy::reference_internal)
+				       py::return_value_policy::reference_internal)
 		.def_property(
 			"size",
 			[](StreamConfiguration &self) {
@@ -416,7 +416,7 @@  PYBIND11_MODULE(_libcamera, m)
 		.def_readwrite("frame_size", &StreamConfiguration::frameSize)
 		.def_readwrite("buffer_count", &StreamConfiguration::bufferCount)
 		.def_property_readonly("formats", &StreamConfiguration::formats,
-		                       py::return_value_policy::reference_internal)
+				       py::return_value_policy::reference_internal)
 		.def_readwrite("color_space", &StreamConfiguration::colorSpace);
 
 	pyStreamFormats