From 865abe602eebc7d6d3a7831dc6101c863512d8b1 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 24 Feb 2023 13:50:50 +0100 Subject: [PATCH] Remove unused xescape() function --- mkosi/__init__.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 484cd6ce3..224ad2722 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2313,19 +2313,6 @@ def find_image_version(args: argparse.Namespace) -> None: pass -def xescape(s: str) -> str: - "Escape a string udev-style, for inclusion in /dev/disk/by-*/* symlinks" - - ret = "" - for c in s: - if ord(c) <= 32 or ord(c) >= 127 or c == "/": - ret = ret + "\\x%02x" % ord(c) - else: - ret = ret + str(c) - - return ret - - DISABLED = Path('DISABLED') # A placeholder value to suppress autodetection. # This is used as a singleton, i.e. should be compared with # 'is' in other parts of the code. -- 2.47.2