diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-10 16:19:42 -0500 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-10 16:19:42 -0500 |
commit | f6f2d97258aaee87385b8b867804f97ea1bd2bde (patch) | |
tree | 710e9174db9e253d079f7f8bd98bbddbd7f9f9d2 /QMTest | |
parent | 2349f35f3a91afb9e078b30f6e2ab0831f6804c5 (diff) | |
download | scons-f6f2d97258aaee87385b8b867804f97ea1bd2bde.tar.gz |
Fixing SConsValues to work with py2/3. Turns out because in py2 optparse.Values is a classic class deepcopy works different than in py3 when it's a modern class (no more classic classes). The net of which is deepcopy will look for various methods to copy the objects state, __deepcopy__, something else, then __setstate__. When it checks for __setstate__ it trys on a blank SConsValue instance which doesn't have __defaults__ and so SConsValues ends up throwing a KeyError exception. deepcopy is looking for an AttributeError exception to know that __setstate__ is not available. Once it receives the appropriate exception, it then properly copies the object and scons interactive mode works with py3
Diffstat (limited to 'QMTest')
0 files changed, 0 insertions, 0 deletions