From a8c5ac136e9eefd2cdf92867d75c1a1effbca9bf Mon Sep 17 00:00:00 2001 From: Mosquito Date: Thu, 2 Jan 2025 05:50:03 +0100 Subject: [PATCH] Fix Python 3.13 support (#3092) Enable Python 3.13 support by replacing `pipes` with `shlex`. Co-authored-by: MichaIng --- motioneye/meyectl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/motioneye/meyectl.py b/motioneye/meyectl.py index e9866b8d6..f682afa09 100755 --- a/motioneye/meyectl.py +++ b/motioneye/meyectl.py @@ -21,8 +21,8 @@ import locale import logging import os.path -import pipes import sys +from shlex import quote import babel @@ -91,7 +91,7 @@ def find_command(command): cmd = sys.executable + ' ' + cmd cmd = cmd.replace('-b', '') # remove server-specific options cmd += ' %s ' % command - cmd += ' '.join([pipes.quote(arg) for arg in sys.argv[2:] if arg not in ['-b']]) + cmd += ' '.join([quote(arg) for arg in sys.argv[2:] if arg not in ['-b']]) return cmd