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

Use NotImplementedError for Python base class methods #6592

Merged
merged 1 commit into from Jul 21, 2015

Conversation

@frewsxcv
Copy link
Member

frewsxcv commented Jul 10, 2015

From the Python docs:

https://docs.python.org/2/library/exceptions.html#exceptions.NotImplementedError

"In user defined base classes, abstract methods should raise this
exception when they require derived classes to override the method."

Review on Reviewable

From the Python docs:

https://docs.python.org/2/library/exceptions.html#exceptions.NotImplementedError

"In user defined base classes, abstract methods should raise this
exception when they require derived classes to override the method."
@hoppipolla-critic-bot
Copy link

hoppipolla-critic-bot commented Jul 10, 2015

Critic review: https://critic.hoppipolla.co.uk/r/5517

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@Ms2ger
Copy link
Contributor

Ms2ger commented Jul 21, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2015

📌 Commit 10296e7 has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2015

Testing commit 10296e7 with merge a9f12da...

bors-servo pushed a commit that referenced this pull request Jul 21, 2015
Use NotImplementedError for Python base class methods

From the Python docs:

https://docs.python.org/2/library/exceptions.html#exceptions.NotImplementedError

"In user defined base classes, abstract methods should raise this
exception when they require derived classes to override the method."

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6592)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2015

💔 Test failed - mac1

@jdm
Copy link
Member

jdm commented Jul 21, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2015

Previous build results for android, gonk, linux1, linux2, linux3, mac2, mac3 are reusable. Rebuilding only mac1...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2015

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

@bors-servo bors-servo merged commit 10296e7 into servo:master Jul 21, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@frewsxcv frewsxcv deleted the frewsxcv:notimplementederror branch Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.