Skip to content

Commit

Permalink
Import ptp-origin lazily to avoid ruamel.yaml dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kannibalox committed Apr 3, 2024
1 parent 9c29a0a commit a38bba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ptpapi/scripts/ptp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from bs4 import BeautifulSoup as bs4

import ptpapi
import ptpapi.scripts.ptp_origin


def ellipsize(string, length):
Expand Down Expand Up @@ -391,6 +390,7 @@ def do_requests(api, args):


def do_origin(api, args):
import ptpapi.scripts.ptp_origin
logger = logging.getLogger(__name__)
for p in args.torrent:
p_path = Path(p)
Expand Down

0 comments on commit a38bba1

Please sign in to comment.