[python-hdf5storage] 45/84: Code cleanup and comment updating in Marshallers.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:25:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 0.1.10
in repository python-hdf5storage.
commit feb6f02533d4c7630aaaae88d34cca2edddb8e82
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sun Apr 26 03:45:34 2015 -0400
Code cleanup and comment updating in Marshallers.
---
hdf5storage/Marshallers.py | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index d0a8fab..daaa51f 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -985,7 +985,7 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
# values (single element structured ndarray), as opposed to
# Reference arrays to all the values (multi-element structed
# ndarray). In Python 2, the field names need to be
- # converted to ASCII from unicode when storing the fields in
+ # converted to str from unicode when storing the fields in
# struct_data.
struct_data = dict()
is_multi_element = True
@@ -1003,12 +1003,8 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
'Python.Empty']))) != 0:
is_multi_element = False
try:
- if sys.hexversion >= 0x03000000:
- struct_data[k] = read_data(f, grp[name], k,
- options)
- else:
- struct_data[k] = \
- read_data(f, grp[name], k, options)
+ struct_data[k] = read_data(f, grp[name], k,
+ options)
except:
pass
@@ -1045,8 +1041,8 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
dt_whole = []
for k in fields:
# In Python 2, the field names for a structured ndarray
- # must be ascii (str) as opposed to unicode, so k needs
- # to be converted in the Python 2 case.
+ # must be str as opposed to unicode, so k needs to be
+ # converted in the Python 2 case.
if sys.hexversion >= 0x03000000:
k_name = k
else:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git
More information about the debian-science-commits
mailing list