[python-hdf5storage] 08/12: Removed replace keyword in str.decode for Python 2.6
    Ghislain Vaillant 
    ghisvail-guest at moszumanska.debian.org
       
    Mon Feb 29 08:24:49 UTC 2016
    
    
  
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 0.1.1
in repository python-hdf5storage.
commit 756f869965342ac58f8681ef4271cb8e174d71e7
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Fri Mar 7 18:44:25 2014 -0500
    Removed replace keyword in str.decode for Python 2.6
---
 hdf5storage/utilities.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/hdf5storage/utilities.py b/hdf5storage/utilities.py
index f16c4d0..7aef79f 100644
--- a/hdf5storage/utilities.py
+++ b/hdf5storage/utilities.py
@@ -228,11 +228,9 @@ def convert_to_str(data):
             return data.decode('ASCII')
         else:
             if isinstance(data, np.ndarray):
-                return data.flatten.tostring().decode('UTF-32',
-                                                      errors='replace')
+                return data.flatten.tostring().decode('UTF-32')
             else:
-                return data.encode('UTF-32').decode('UTF-32', \
-                    errors='replace')
+                return data.encode('UTF-32').decode('UTF-32')
 
     if isinstance(data, bytes):
         return data.decode('ASCII')
-- 
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