Skip to content

Commit

Permalink
Get rid of obsolete python 2.5 code.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Oct 25, 2023
1 parent 4406e62 commit 1852f8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PyMca5/PyMcaIO/TiffIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,9 +1114,7 @@ def _getOutputIFD(self, image, description=None, software=None, date=None):
info["date"] = date
info["sampleFormat"] = sampleFormat

outputIFD = ""
if sys.version > '2.6':
outputIFD = eval('b""')
outputIFD = b""

fmt = st + "H"
outputIFD += struct.pack(fmt, nDirectoryEntries)
Expand Down

0 comments on commit 1852f8b

Please sign in to comment.