Skip to content

Commit f68f439

Browse files
ioistiredGorialis
authored andcommitted
use import_expression v2.0.0
Closes #231 Closes #228
1 parent 5189eaf commit f68f439

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
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

jishaku/repl/disassembly.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@
2222

2323
from jishaku.repl.scope import Scope
2424

25-
CORO_CODE = f"""
25+
CORO_CODE = """
2626
import asyncio
2727
2828
import discord
2929
from discord.ext import commands
30-
from importlib import import_module as {import_expression.constants.IMPORTER}
3130
3231
import jishaku
3332
34-
async def _repl_coroutine({{0}}):
33+
async def _repl_coroutine({0}):
3534
pass
3635
"""
3736

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)