[FEM] remove checks for Python 2

This commit is contained in:
Uwe
2022-07-23 15:15:00 +02:00
parent 5f82cfb39f
commit a035d650b6
9 changed files with 2 additions and 46 deletions

View File

@@ -378,16 +378,8 @@ def get_refshape_type(fem_doc_object):
def pydecode(bytestring):
""" Return *bytestring* as a unicode string for python 2 and 3.
For python 2 *bytestring* is converted to a string of type ``unicode``. For
python 3 it is returned as is because it uses unicode for it's ``str`` type
already.
"""
if sys.version_info.major < 3:
return bytestring
else:
return bytestring.decode("utf-8")
""" Return *bytestring* as a unicode string """
return bytestring.decode("utf-8")
def startProgramInfo(code):