Skip to content

Commit

Permalink
Merge pull request #2333 from andreabedini/patch-3
Browse files Browse the repository at this point in the history
Fix wrong syntax for assert
  • Loading branch information
pelson committed Aug 23, 2013
2 parents 8bba2a4 + 25bee51 commit 15b9848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/docstring.py
Expand Up @@ -33,8 +33,8 @@ def some_function(x):
"%s %s wrote the Raven"
"""
def __init__(self, *args, **kwargs):
assert (not (args and kwargs),
"Only positional or keyword args are allowed")
assert not (args and kwargs), \
"Only positional or keyword args are allowed"
self.params = args or kwargs

def __call__(self, func):
Expand Down

0 comments on commit 15b9848

Please sign in to comment.