Commit e6c21c0a authored by Matias Guijarro's avatar Matias Guijarro

Merge branch '41-issue-with-metadata-in-python3' into 'master'

Resolve "Issue with metadata in python3"

Closes #41

See merge request !28
parents 7df379f7 0fd0b42a
......@@ -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