Skip to content

Commit 6e0dd93

Browse files
committed
Revert "prov.model: Temporary disabled auto-mapping xsd:double and xsd:long literals to Python's float and long values to avoid the bug #34"
This reverts commit 9a83973.
1 parent 9a83973 commit 6e0dd93

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

prov/model.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@ def _parse_datatype(value, datatype):
8080
# Mappings for XSD datatypes to Python standard types
8181
XSD_DATATYPE_PARSERS = {
8282
u"xsd:string": unicode,
83-
# TODO: The following are omitted because attribute values 2 and 2.0 are consider the same by Python in a set!
84-
# (two values of xsd:int 2 and xsd:double 2.0 will be merged into one if the below mappings are enabled)
85-
# See issue #34
86-
# u"xsd:double": float,
87-
# u"xsd:long": long,
83+
u"xsd:double": float,
84+
u"xsd:long": long,
8885
u"xsd:int": int,
8986
u"xsd:boolean": bool,
9087
u"xsd:dateTime": parse_xsd_datetime,

0 commit comments

Comments
 (0)