From 7b501956767d0012c785ef0df033a336eb6f0612 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 9 Apr 2024 20:19:30 -0500 Subject: [PATCH] Python 3.11 and below compatibility --- src/sos/targets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sos/targets.py b/src/sos/targets.py index 638b0f268..b7abf3ee2 100644 --- a/src/sos/targets.py +++ b/src/sos/targets.py @@ -528,8 +528,7 @@ class file_target(path, BaseTarget): """A regular target for files.""" def __init__(self, *args, **kwargs): - # this is path segments - path.__init__(self, *args, **kwargs) + path.__init__(self) BaseTarget.__init__(self, *args, **kwargs) if len(args) == 1 and isinstance(args[0], file_target): self._md5 = args[0]._md5 if hasattr(args[0], '_md5') else None