Skip to content

Commit

Permalink
Inline the compatibility shim.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 14, 2024
1 parent 4d4ba1b commit 497aba6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Empty file removed irc/compat/__init__.py
Empty file.
Empty file removed irc/compat/py311/__init__.py
Empty file.
Empty file.
7 changes: 0 additions & 7 deletions irc/compat/py311/importlib/resources.py

This file was deleted.

6 changes: 5 additions & 1 deletion irc/events.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import itertools
import sys

from jaraco.text import clean, drop_comment, lines_from

from .compat.py311.importlib.resources import files
if sys.version_info >= (3, 12):
from importlib.resources import files
else:
from importlib_resources import files


class Code(str):
Expand Down

0 comments on commit 497aba6

Please sign in to comment.