diff --git a/jishaku/repl/compilation.py b/jishaku/repl/compilation.py index 32204941..3fbfbf5e 100644 --- a/jishaku/repl/compilation.py +++ b/jishaku/repl/compilation.py @@ -23,10 +23,9 @@ from jishaku.repl.scope import Scope from jishaku.repl.walkers import KeywordTransformer -CORO_CODE = f""" -async def _repl_coroutine({{0}}): +CORO_CODE = """ +async def _repl_coroutine({0}): import asyncio - from importlib import import_module as {import_expression.constants.IMPORTER} import aiohttp import discord diff --git a/jishaku/repl/disassembly.py b/jishaku/repl/disassembly.py index d4da76dc..4931ccc6 100644 --- a/jishaku/repl/disassembly.py +++ b/jishaku/repl/disassembly.py @@ -22,16 +22,15 @@ from jishaku.repl.scope import Scope -CORO_CODE = f""" +CORO_CODE = """ import asyncio import discord from discord.ext import commands -from importlib import import_module as {import_expression.constants.IMPORTER} import jishaku -async def _repl_coroutine({{0}}): +async def _repl_coroutine({0}): pass """ diff --git a/requirements/_.txt b/requirements/_.txt index a9eb92e0..34d6e8e1 100644 --- a/requirements/_.txt +++ b/requirements/_.txt @@ -1,7 +1,7 @@ braceexpand >= 0.1.7 click >= 8.1.7 discord.py >= 2.3.2 -import_expression >= 1.1.4, < 2.0.0 +import_expression >= 2.0.0, < 3.0.0 tabulate >= 0.9.0 typing-extensions >= 4.3, < 5 importlib_metadata >= 3.7.0; python_version < "3.10"