summaryrefslogtreecommitdiff
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-10 16:19:42 -0500
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-10 16:19:42 -0500
commitf6f2d97258aaee87385b8b867804f97ea1bd2bde (patch)
tree710e9174db9e253d079f7f8bd98bbddbd7f9f9d2 /QMTest
parent2349f35f3a91afb9e078b30f6e2ab0831f6804c5 (diff)
downloadscons-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