Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename our BaseException class to ExceptionBase, for Python #497

Merged
merged 1 commit into from Apr 22, 2020

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Apr 15, 2020

pylint pointed out that BaseException is a Python standard library exception class (not quite a reserved word, but pretty close), so it's not a great idea to redefine that name in our bindings.

This PR renames it to ExceptionBase, which is actually more in keeping with our standard class naming system anyway. (Compare ReaderBase, EffectBase, CacheBase, etc.)

BaseException is a python standard library exception class, so it's
not a great idea to redefine that name in our bindings. Renamed
to ExceptionBase, which is more in keeping with our class naming
system anyway.
@ferdnyc ferdnyc added code Source code cleanup, streamlining, or style tweaks bindings libopenshot's Python or Ruby interface bindings labels Apr 15, 2020
@ferdnyc
Copy link
Contributor Author

ferdnyc commented Apr 22, 2020

This is pretty minor, and it's best if we avoid name clashes in Python. Merging.

@ferdnyc ferdnyc merged commit f36bb33 into OpenShot:develop Apr 22, 2020
@ferdnyc ferdnyc deleted the rename-base-except branch April 22, 2020 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings libopenshot's Python or Ruby interface bindings code Source code cleanup, streamlining, or style tweaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant