8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8bfcd0 commit 48d6edbCopy full SHA for 48d6edb
numpy/core/arrayprint.py
@@ -657,7 +657,7 @@ def __init__(self, data):
657
max_str_len = max(len(str(maximum.reduce(data, skipna=True))),
658
len(str(minimum.reduce(data, skipna=True))))
659
self.format = '%' + str(max_str_len) + 'd'
660
- except TypeError, NotImplementedError:
+ except (TypeError, NotImplementedError):
661
# if reduce(data) fails, this instance will not be called, just
662
# instantiated in formatdict.
663
pass
0 commit comments