Skip to content

Commit 0c16ddc

Browse files
committed
Fix for 3.13
1 parent 4408b2a commit 0c16ddc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

jishaku/meta.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class VersionInfo(typing.NamedTuple):
3333
serial: int
3434

3535

36-
version_info = VersionInfo(major=2, minor=5, micro=2, releaselevel='final', serial=0)
36+
version_info = VersionInfo(major=2, minor=6, micro=0, releaselevel='final', serial=0)
3737

3838
__author__ = 'Gorialis'
3939
__copyright__ = 'Copyright 2021 Devon (Gorialis) R'

jishaku/repl/disassembly.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ def recurse_code(code: types.CodeType) -> typing.Generator[types.CodeType, None,
217217

218218

219219
if sys.version_info >= (3, 11):
220-
SPECIALIZED_INSTRUCTIONS: typing.Set[str] = frozenset(opcode._specialized_instructions) # type: ignore # pylint: disable=protected-access,no-member
220+
try:
221+
SPECIALIZED_INSTRUCTIONS: typing.Set[str] = frozenset(opcode._specialized_opmap.keys()) # type: ignore # pylint: disable=protected-access,no-member
222+
except AttributeError:
223+
SPECIALIZED_INSTRUCTIONS: typing.Set[str] = frozenset(opcode._specialized_instructions) # type: ignore # pylint: disable=protected-access,no-member
221224
else:
222225
SPECIALIZED_INSTRUCTIONS: typing.Set[str] = frozenset()
223226

requirements/_.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
braceexpand >= 0.1.7
22
click >= 8.1.7
3-
discord.py >= 2.3.2
3+
discord.py >= 2.4.0
44
import_expression >= 2.0.0, < 3.0.0
55
tabulate >= 0.9.0
66
typing-extensions >= 4.3, < 5

0 commit comments

Comments
 (0)