[FEM] remove checks for Python 2
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user