Skip to content

Commit 9b39d39

Browse files
committed
use import_expression v2.0.0
Closes scarletcafe#231 Closes scarletcafe#228
1 parent 5189eaf commit 9b39d39

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

jishaku/repl/compilation.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
from jishaku.repl.scope import Scope
2424
from jishaku.repl.walkers import KeywordTransformer
2525

26-
CORO_CODE = f"""
27-
async def _repl_coroutine({{0}}):
26+
CORO_CODE = """
27+
async def _repl_coroutine({0}):
2828
import asyncio
29-
from importlib import import_module as {import_expression.constants.IMPORTER}
3029
3130
import aiohttp
3231
import discord

requirements/_.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
braceexpand >= 0.1.7
22
click >= 8.1.7
33
discord.py >= 2.3.2
4-
import_expression >= 1.1.4, < 2.0.0
4+
import_expression >= 2.0.0, < 3.0.0
55
tabulate >= 0.9.0
66
typing-extensions >= 4.3, < 5
77
importlib_metadata >= 3.7.0; python_version < "3.10"

0 commit comments

Comments
 (0)