Commit 0fd0b42a authored by Wout De Nolf's avatar Wout De Nolf

[xml export] python2 -> python3

parent 7df379f7
......@@ -90,7 +90,10 @@ except ImportError as exp:
def dst(self, dt):
return None
def gds_format_string(self, input_data, input_name=''):
return input_data
try:
return input_data.decode()
except AttributeError:
return input_data
def gds_validate_string(self, input_data, node, input_name=''):
if not input_data:
return ''
......
......@@ -90,7 +90,10 @@ except ImportError as exp:
def dst(self, dt):
return None
def gds_format_string(self, input_data, input_name=''):
return input_data
try:
return input_data.decode()
except AttributeError:
return input_data
def gds_validate_string(self, input_data, node, input_name=''):
if not input_data:
return ''
......
......@@ -90,7 +90,10 @@ except ImportError as exp:
def dst(self, dt):
return None
def gds_format_string(self, input_data, input_name=''):
return input_data
try:
return input_data.decode()
except AttributeError:
return input_data
def gds_validate_string(self, input_data, node, input_name=''):
if not input_data:
return ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment