Skip to content

Commit

Permalink
use import_expression v2.0.0
Browse files Browse the repository at this point in the history
Closes #231
Closes #228
  • Loading branch information
ioistired authored and Gorialis committed May 28, 2024
1 parent 5189eaf commit f68f439
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions jishaku/repl/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions jishaku/repl/disassembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand Down
2 changes: 1 addition & 1 deletion requirements/_.txt
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f68f439

Please sign in to comment.