diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-07-05 13:19:43 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-07-05 17:29:25 -0600 |
commit | 7fa8ab6ac29c1dccf34dae5c53211ace67620ed7 (patch) | |
tree | 29c6f65a680e9bb21bda2624ba1e38ace5d48525 /numpy/core/_internal.py | |
parent | 8b3e9ae5262c1da1118370cd6e83db9b2166952e (diff) | |
download | numpy-7fa8ab6ac29c1dccf34dae5c53211ace67620ed7.tar.gz |
MAINT: Fix some pyflakes warnings in numpy/core/*.py
These fixes are not agressive as some of the code is complicated
and it is better to be careful.
The files numeric.py and numerictypes.py are not easily analysed
and the latter is self modifying. Pyflakes generates a number of
invalid warnings for those files.
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index b6af93d43..f8271d5ab 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -8,9 +8,8 @@ from __future__ import division, absolute_import, print_function import re import sys -import warnings -from numpy.compat import asbytes, bytes, basestring +from numpy.compat import asbytes, basestring from .multiarray import dtype, array, ndarray import ctypes from .numerictypes import object_ @@ -561,7 +560,6 @@ def _dtype_from_pep3118(spec, byteorder='@', is_subdtype=False): this_explicit_name = False common_alignment = 1 is_padding = False - last_offset = 0 dummy_name_index = [0] @@ -691,7 +689,6 @@ def _dtype_from_pep3118(spec, byteorder='@', is_subdtype=False): raise RuntimeError("Duplicate field name '%s' in PEP3118 format" % name) fields[name] = (value, offset) - last_offset = offset if not this_explicit_name: next_dummy_name() |