From 6aa659951a63d7c491f1a06aea0605ea30ec699f Mon Sep 17 00:00:00 2001 From: zuko3d Date: Fri, 18 May 2018 19:54:01 +0300 Subject: BUG: Fix typo in variable name (#11116) Typo fix in variable name in core/numeric/binary_repr/warn_if_insufficient. This only worked before because it used binwidth from the outer namespace. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index cd783d242..7ade3d224 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2035,7 +2035,7 @@ def binary_repr(num, width=None): '11101' """ - def warn_if_insufficient(width, binwdith): + def warn_if_insufficient(width, binwidth): if width is not None and width < binwidth: warnings.warn( "Insufficient bit width provided. This behavior " -- cgit v1.2.1