summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py5
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()