From: Diane Trout Date: Fri, 20 Mar 2015 21:18:33 +0000 (-0700) Subject: Replace some unicode() with str() X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=74ed804d07e6b1ec1f42516293225b009105b169 Replace some unicode() with str() --- diff --git a/htsworkflow/util/rdfhelp.py b/htsworkflow/util/rdfhelp.py index ebd2d26..da4b02a 100644 --- a/htsworkflow/util/rdfhelp.py +++ b/htsworkflow/util/rdfhelp.py @@ -98,10 +98,10 @@ def toTypedNode(value, language="en"): value = u'0' elif isinstance(value, int): value_type = xsdNS['decimal'].uri - value = unicode(value) + value = str(value) elif isinstance(value, float): value_type = xsdNS['float'].uri - value = unicode(value) + value = str(value) elif isinstance(value, datetime): value_type = xsdNS['dateTime'].uri if value.microsecond == 0: