Skip to content

Conversation

remeh
Copy link
Contributor

@remeh remeh commented Aug 8, 2019

What does this PR do?

Mimics the two::_findSubclassOf behavior in three::_findSubclassOf because the two's implementation has been well tested since and the changes were not reflected on the three's implementation.

Motivation

The original goal is to improve the resiliency of _findSubclassOf in the three implementation.
It should not have any impact and it doesn't have any logic change, just code clarity.

Additional Notes

Ref PR: #3487

@remeh remeh added [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. changelog/no-changelog labels Aug 8, 2019
@remeh remeh added this to the 6.14.0 milestone Aug 8, 2019
klass = PyObject_GetAttrString(module, symbol_name);
::free(symbol_name);
if (klass == NULL) {
PyErr_Clear();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not required due to as_string implementation, but it doesn't harm and better mimics the two code.

hush-hush
hush-hush previously approved these changes Aug 15, 2019
@hush-hush hush-hush force-pushed the remeh/py3_subclassof branch from 7c07f7a to 1b6a7f5 Compare August 15, 2019 17:19
@hush-hush hush-hush merged commit be25b35 into master Aug 15, 2019
@hush-hush hush-hush deleted the remeh/py3_subclassof branch August 15, 2019 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead..
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants