diff options
Diffstat (limited to 'silx/third_party')
-rw-r--r-- | silx/third_party/EdfFile.py | 6 | ||||
-rw-r--r-- | silx/third_party/TiffIO.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/silx/third_party/EdfFile.py b/silx/third_party/EdfFile.py index d06a211..0606d1c 100644 --- a/silx/third_party/EdfFile.py +++ b/silx/third_party/EdfFile.py @@ -1,6 +1,6 @@ # /*########################################################################## # -# Copyright (c) 2004-2018 European Synchrotron Radiation Facility +# Copyright (c) 2004-2020 European Synchrotron Radiation Facility # # This file is part of the PyMca X-ray Fluorescence Toolkit developed at # the ESRF by the Software group. @@ -846,9 +846,9 @@ class EdfFile(object): # if self.Images[Index].StaticHeader["ByteOrder"] != self.SysByteOrder: if self.Images[Index].ByteOrder.upper() != self.SysByteOrder.upper(): - self.File.write((Data.byteswap()).tostring()) + self.File.write((Data.byteswap()).tobytes()) else: - self.File.write(Data.tostring()) + self.File.write(Data.tobytes()) def __makeSureFileIsOpen(self): if DEBUG: diff --git a/silx/third_party/TiffIO.py b/silx/third_party/TiffIO.py index 8768cff..7526a75 100644 --- a/silx/third_party/TiffIO.py +++ b/silx/third_party/TiffIO.py @@ -2,7 +2,7 @@ # # The PyMca X-Ray Fluorescence Toolkit # -# Copyright (c) 2004-2015 European Synchrotron Radiation Facility +# Copyright (c) 2004-2020 European Synchrotron Radiation Facility # # This file is part of the PyMca X-ray Fluorescence Toolkit developed at # the ESRF by the Software group. @@ -850,9 +850,9 @@ class TiffIO(object): #write the image if self._swap: - fd.write(image.byteswap().tostring()) + fd.write(image.byteswap().tobytes()) else: - fd.write(image.tostring()) + fd.write(image.tobytes()) fd.flush() self.fd=fd |