diff options
author | aleju <kontakt@ajung.name> | 2019-08-13 21:18:48 +0200 |
---|---|---|
committer | aleju <kontakt@ajung.name> | 2019-08-13 21:18:48 +0200 |
commit | b9f9cbfde5defb6e350284ff91e9ee6605dbe53d (patch) | |
tree | e6e1b1087eb5263fe8bf892f56aaf7d293d2d74e /numpy/random/common.pyx | |
parent | d8ce42bb4345a4fd7993eceeac7a740c8b27063e (diff) | |
download | numpy-b9f9cbfde5defb6e350284ff91e9ee6605dbe53d.tar.gz |
BUG: Fix formatting error in exception message
This commit fixes a simple formatting error in the
generation of an exception message. The message
is supposed to contain the expected vs. the actual
dtype, but instead contained two times the expected
dtype.
Diffstat (limited to 'numpy/random/common.pyx')
-rw-r--r-- | numpy/random/common.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/common.pyx b/numpy/random/common.pyx index 6ad5f5b21..b2f24be7d 100644 --- a/numpy/random/common.pyx +++ b/numpy/random/common.pyx @@ -227,7 +227,7 @@ cdef check_output(object out, object dtype, object size): raise ValueError('Supplied output array is not contiguous, writable or aligned.') if out_array.dtype != dtype: raise TypeError('Supplied output array has the wrong type. ' - 'Expected {0}, got {0}'.format(dtype, out_array.dtype)) + 'Expected {0}, got {1}'.format(dtype, out_array.dtype)) if size is not None: try: tup_size = tuple(size) |