summaryrefslogtreecommitdiff
path: root/numpy/lib/format.py
diff options
context:
space:
mode:
authorRémy Léone <remy.leone@gmail.com>2015-11-07 12:00:36 +0100
committerRémy Léone <remy.leone@gmail.com>2015-11-07 12:00:36 +0100
commitdef49ba8fa3fe252c26c210d7730ed5c3a42c60e (patch)
treec9f3f8ee031fdfbb1db2350c909e0682a2065820 /numpy/lib/format.py
parent98f8f9c6876f2338ac783a542f5466aea03561ae (diff)
downloadnumpy-def49ba8fa3fe252c26c210d7730ed5c3a42c60e.tar.gz
MAINT: Dictionary litteral
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r--numpy/lib/format.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py
index 66a1b356c..a0f2c5497 100644
--- a/numpy/lib/format.py
+++ b/numpy/lib/format.py
@@ -265,8 +265,7 @@ def header_data_from_array_1_0(array):
This has the appropriate entries for writing its string representation
to the header of the file.
"""
- d = {}
- d['shape'] = array.shape
+ d = {'shape': array.shape}
if array.flags.c_contiguous:
d['fortran_order'] = False
elif array.flags.f_contiguous: