summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-07-30 16:48:11 -0600
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-07-31 21:21:13 +0200
commitdec6658cdc10a23ad0e733fb52a814306033d88c (patch)
treedfa2a5d879f9ec10f75287a045070729cf415432 /numpy/lib/utils.py
parent0b5a6645ee110a8d4c6b5defd8c01791ee48bda1 (diff)
downloadnumpy-dec6658cdc10a23ad0e733fb52a814306033d88c.tar.gz
MAINT: Fixes for problems in numpy/lib revealed by pyflakes.
Some of those problems look like potential coding errors. In those cases a Fixme comment was made and the offending code, usually an unused variable, was commented out.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index 6d41e8eb4..17c5b9743 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -6,13 +6,13 @@ import types
import re
from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype
-from numpy.core import product, ndarray, ufunc, asarray
+from numpy.core import ndarray, ufunc, asarray
__all__ = [
'issubclass_', 'issubsctype', 'issubdtype', 'deprecate',
'deprecate_with_doc', 'get_include', 'info', 'source', 'who',
'lookfor', 'byte_bounds', 'safe_eval'
-]
+ ]
def get_include():
"""
@@ -1134,11 +1134,11 @@ def safe_eval(source):
walker = SafeEval()
try:
ast = compiler.parse(source, mode="eval")
- except SyntaxError as err:
+ except SyntaxError:
raise
try:
return walker.visit(ast)
- except SyntaxError as err:
+ except SyntaxError:
raise
#-----------------------------------------------------------------------------