Skip to content

Commit

Permalink
Fix Python 3.8 compat ... again
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Jul 21, 2024
1 parent d0fa889 commit 9b56676
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tvrip/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@
import cmd
import readline
from textwrap import dedent
from importlib import resources
from unittest import mock
try:
# Remove when base Python version >3.8
import importlib_resources as resources
except ImportError:
from importlib import resources

from rich import box
from rich.console import Console
Expand Down
6 changes: 5 additions & 1 deletion tvrip/ripcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
import re
import subprocess as proc
from pathlib import Path
from importlib import resources
from datetime import timedelta, datetime
try:
# Remove when base Python version >3.8
import importlib_resources as resources
except ImportError:
from importlib import resources

import requests
import sqlalchemy as sa
Expand Down

0 comments on commit 9b56676

Please sign in to comment.