Skip to content

Commit

Permalink
Fix for 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Aug 26, 2024
1 parent 4408b2a commit 0c16ddc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jishaku/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class VersionInfo(typing.NamedTuple):
serial: int


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

__author__ = 'Gorialis'
__copyright__ = 'Copyright 2021 Devon (Gorialis) R'
Expand Down
5 changes: 4 additions & 1 deletion jishaku/repl/disassembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ def recurse_code(code: types.CodeType) -> typing.Generator[types.CodeType, None,


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

Expand Down
2 changes: 1 addition & 1 deletion requirements/_.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
braceexpand >= 0.1.7
click >= 8.1.7
discord.py >= 2.3.2
discord.py >= 2.4.0
import_expression >= 2.0.0, < 3.0.0
tabulate >= 0.9.0
typing-extensions >= 4.3, < 5
Expand Down

0 comments on commit 0c16ddc

Please sign in to comment.