aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorPreston Landers <planders@utexas.edu>2016-12-28 13:14:53 -0600
committerPreston Landers <planders@utexas.edu>2016-12-28 13:14:53 -0600
commit1bd827efdf08b77f8a0a29c58dfc805368466964 (patch)
tree365ccdb9ca5fa60a5bf28249dbaef8171e2fce06 /setuptools/tests
parent6d69dd73b900cff84ee142ad82967dd025a75b72 (diff)
downloadexternal_python_setuptools-1bd827efdf08b77f8a0a29c58dfc805368466964.tar.gz
external_python_setuptools-1bd827efdf08b77f8a0a29c58dfc805368466964.tar.bz2
external_python_setuptools-1bd827efdf08b77f8a0a29c58dfc805368466964.zip
Attempt to fix issue #866 by iterating over code with `dis.Bytecode` instead of the internal `_iter_code`.
The `dis` module was already used in `_iter_code` so I figured it was safe to use `Bytecode` from it. Not sure how this assumption holds up across all supported Python releases. I can only assume `Bytecode` wasn't there before when `_iter_code` was originally written? Note that `_iter_code` doesn't appear to be called anywhere in light of this change so I removed it. I should also note that `get_module_constant` has never worked with `setuptools.__version__` (returns -1) because it's not a string literal; it gets that attribute from another module. But this change does work in cases where a string literal is requested. https://github.com/pypa/setuptools/issues/866
Diffstat (limited to 'setuptools/tests')
0 files changed, 0 insertions, 0 deletions