Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better detection of Path for Python 3.13 #416

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pybedtools/bedtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import gzip
import pysam
from warnings import warn
import pathlib
from pathlib import Path

from .helpers import (
Expand Down Expand Up @@ -495,7 +496,7 @@ def __init__(self, fn=None, from_string=False, remote=False):

else:
# if fn is a Path object, we have to use its string representation
if "pathlib.PurePath" in str(type(fn).__mro__):
if isinstance(fn, pathlib.PurePath):
fn = str(fn)

# our work is already done
Expand Down
Loading