Skip to content

Commit

Permalink
Python 3.11 and below compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Apr 10, 2024
1 parent e556d72 commit 7b50195
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sos/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b50195

Please sign in to comment.