Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15b9848

Browse files
committed
Merge pull request #2333 from andreabedini/patch-3
Fix wrong syntax for assert
2 parents 8bba2a4 + 25bee51 commit 15b9848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/docstring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def some_function(x):
3333
"%s %s wrote the Raven"
3434
"""
3535
def __init__(self, *args, **kwargs):
36-
assert (not (args and kwargs),
37-
"Only positional or keyword args are allowed")
36+
assert not (args and kwargs), \
37+
"Only positional or keyword args are allowed"
3838
self.params = args or kwargs
3939

4040
def __call__(self, func):

0 commit comments

Comments
 (0)