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

Fix wrong syntax for assert #2333

Merged
merged 1 commit into from Aug 23, 2013
Merged

Fix wrong syntax for assert #2333

merged 1 commit into from Aug 23, 2013

Conversation

andreabedini
Copy link

The assert statement doesn't take parentheses, see
http://docs.python.org/3.2/reference/simple_stmts.html#assert
http://docs.python.org/2/reference/simple_stmts.html#grammar-token-assert_stmt

I found this because python gave me the following
SyntaxWarning: assertion is always true, perhaps remove parentheses?

The assert statement doesn't take parentheses, see
http://docs.python.org/3.2/reference/simple_stmts.html#assert
http://docs.python.org/2/reference/simple_stmts.html#grammar-token-assert_stmt

I found this because python gave me the following
```SyntaxWarning: assertion is always true, perhaps remove parentheses?```
@andreabedini
Copy link
Author

Travis CI build failure seems to be unrelated.

pelson added a commit that referenced this pull request Aug 23, 2013
@pelson pelson merged commit 15b9848 into matplotlib:master Aug 23, 2013
@mdboom
Copy link
Member

mdboom commented Aug 26, 2013

FWIW: not applicable to 1.3.x

@andreabedini andreabedini deleted the patch-3 branch August 28, 2013 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants