Skip to content

Commit

Permalink
docs: correct deprecation statement about pathlib.Path.relative_to
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 6, 2025
1 parent da8e08a commit a7d67e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dclab/rtdc_dataset/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def store_basin(self,
flocs.append(str(pp.resolve()))
# Also store the relative path for user convenience.
# Don't use pathlib.Path.relative_to, because that
# is deprecated in Python 3.12.
# only has `walk_up` since Python 3.12.
# Also, just look in subdirectories which simplifies
# path resolution.
this_parent = str(self.path.parent) + os.sep
Expand Down

0 comments on commit a7d67e8

Please sign in to comment.