From d9c5b85671471a3b3ecdde09fb33170803f7767d Mon Sep 17 00:00:00 2001 From: Aitik Gupta Date: Fri, 13 Nov 2020 09:00:54 +0530 Subject: [PATCH] Use in-place sort --- samples/python/stitching_detailed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/python/stitching_detailed.py b/samples/python/stitching_detailed.py index b0cf78a759..cd3f063e35 100644 --- a/samples/python/stitching_detailed.py +++ b/samples/python/stitching_detailed.py @@ -387,7 +387,7 @@ def main(): focals = [] for cam in cameras: focals.append(cam.focal) - sorted(focals) + focals.sort() if len(focals) % 2 == 1: warped_image_scale = focals[len(focals) // 2] else: