You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Track branch changes in xdis
This commit is contained in:
@@ -36,8 +36,8 @@ jobs:
|
|||||||
# fallback to using the latest cache if no exact match is found
|
# fallback to using the latest cache if no exact match is found
|
||||||
- v2-dependencies-
|
- v2-dependencies-
|
||||||
|
|
||||||
# This is based on your 1.0 configuration file or project settings
|
|
||||||
- run: pip install --user --upgrade setuptools
|
- run: pip install --user --upgrade setuptools
|
||||||
|
- run: pip install --user git+git://github.com/rocky/python-xdis.git#egg=xdis-4.4.1
|
||||||
- run: pip install --user -e .
|
- run: pip install --user -e .
|
||||||
- run: pip install --user -r requirements-dev.txt
|
- run: pip install --user -r requirements-dev.txt
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@ matrix:
|
|||||||
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
|
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- pip install git+git://github.com/rocky/python-xdis.git#egg=xdis-4.3.3
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
- pip install -r requirements-dev.txt
|
- pip install -r requirements-dev.txt
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# (C) Copyright 2015-2018 by Rocky Bernstein
|
# (C) Copyright 2015-2018, 2020 by Rocky Bernstein
|
||||||
# (C) Copyright 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com>
|
# (C) Copyright 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -27,10 +27,8 @@ from subprocess import call
|
|||||||
import uncompyle6
|
import uncompyle6
|
||||||
from uncompyle6.scanner import (Token as ScannerToken, get_scanner)
|
from uncompyle6.scanner import (Token as ScannerToken, get_scanner)
|
||||||
from uncompyle6 import PYTHON3
|
from uncompyle6 import PYTHON3
|
||||||
from xdis import iscode
|
from xdis import iscode, load_file, load_module, pretty_code_flags
|
||||||
from xdis.magics import PYTHON_MAGIC_INT
|
from xdis.magics import PYTHON_MAGIC_INT
|
||||||
from xdis.load import load_file, load_module
|
|
||||||
from xdis.util import pretty_flags
|
|
||||||
|
|
||||||
# FIXME: DRY
|
# FIXME: DRY
|
||||||
if PYTHON3:
|
if PYTHON3:
|
||||||
@@ -352,8 +350,8 @@ def cmp_code_objects(version, is_pypy, code_obj1, code_obj2, verify,
|
|||||||
flags2 &= ~0x000000a0
|
flags2 &= ~0x000000a0
|
||||||
if flags1 != flags2:
|
if flags1 != flags2:
|
||||||
raise CmpErrorMember(name, 'co_flags',
|
raise CmpErrorMember(name, 'co_flags',
|
||||||
pretty_flags(flags1),
|
pretty_code_flags(flags1),
|
||||||
pretty_flags(flags2))
|
pretty_code_flags(flags2))
|
||||||
else:
|
else:
|
||||||
# all other members must be equal
|
# all other members must be equal
|
||||||
if getattr(code_obj1, member) != getattr(code_obj2, member):
|
if getattr(code_obj1, member) != getattr(code_obj2, member):
|
||||||
|
Reference in New Issue
Block a user