Skip to content

Commit

Permalink
Drop pre-Python 3.10 code branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Dec 8, 2024
1 parent affe92b commit fe7663e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions markups/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ def get_all_markups() -> list[type[AbstractMarkup]]:
"""
:returns: list of all markups (both standard and custom ones)
"""
try: # Python 3.10+
entrypoints = entry_points(group="pymarkups")
except TypeError: # Older versions
entrypoints = entry_points()["pymarkups"]
entrypoints = entry_points(group="pymarkups")
return [entry_point.load() for entry_point in entrypoints]


Expand Down

0 comments on commit fe7663e

Please sign in to comment.