Skip to content

Commit

Permalink
Remove old Python 3.8 code
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Oct 29, 2024
1 parent f7ddb04 commit 73b12dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyphen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

try:
dictionaries = resources.files('pyphen.dictionaries')
except (AttributeError, TypeError):
# AttributeError with Python 3.8, TypeError with Python 3.9
except TypeError:
dictionaries = Path(__file__).parent / 'dictionaries'

for path in sorted(dictionaries.iterdir()):
Expand Down

0 comments on commit 73b12dd

Please sign in to comment.