Skip to content

Commit 09ca50d

Browse files
author
rocky
committed
Use newer xdis API
1 parent cd24a3e commit 09ca50d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Install dependencies
2323
run: |
24-
pip install -e .
2524
# Until the next xdis release
2625
pip install git+https://github.com/rocky/python-xdis#egg=xdis
26+
pip install -e .
2727
pip install -r requirements-dev.txt
2828
- name: Test xpython
2929
run: |

xpython/execfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def run_python_file(
210210
else:
211211
sys.path[0] = osp.abspath(osp.dirname(filename))
212212

213-
is_pypy = IS_PYPY
213+
python_implementation = PYTHON_IMPLEMENTATION
214214
try:
215215
# Open the source or bytecode file.
216216
try:
@@ -279,7 +279,7 @@ def run_python_file(
279279
code,
280280
main_mod.__dict__,
281281
python_version,
282-
is_pypy,
282+
python_implementation,
283283
callback,
284284
format_instruction=format_instruction,
285285
)

xpython/vm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from xdis import (
1313
CO_NEWLOCALS,
14-
IS_PYPY,
1514
PYTHON_IMPLEMENTATION,
1615
PYTHON_VERSION_TRIPLE,
1716
code2num,

0 commit comments

Comments
 (0)