Uh oh!
There was an error while loading. Please reload this page.
Fix issue #342 - #343
Conversation
Given that this is a private class, it's tempting not to bother with the OTOH, apparently this class is directly imported in traits_enaml and pyface. :-( |
mdickinson
commented
Jan 26, 2017
We should probably make this class public at some point. LGTM. I'm not a big fan of the name |
mdickinson
commented
Jan 26, 2017
Another possibility, which I think I prefer to this one: don't deprecate use of the The downside is that now if you want to dig the |
| import unittest2 as unittest | ||
| else: | ||
| import unittest | ||
| import unittest # noqa |
There was a problem hiding this comment.
Since we're messing with this anyway, can we drop the unittest2 import as 2.6 is no longer supported.
| def __init__(self, **traits): | ||
| value = traits.pop('trait', None) | ||
| if value is not None: |
There was a problem hiding this comment.
I think if 'trait' in traits: is better here with a traits['monitor_trait'] = traits.pop('trait') below.
Less confusing if initialized with trait=None (which will slip through undetected as an error).
corranwebster
commented
Apr 7, 2017
I agree about the name |
stefanoborini
commented
May 26, 2017
@corranwebster can this be merged? |
This PR renames the
traitattribute of_TraitsChangeCollectorto fix#342. There is no change at the constructor signature but I add a deprecation warning that prompts users to stop usingtrait