Changed 'six.text_type' to 'six.string_types', since the former didn't seem to work in python2.7
parent
4753519349
commit
4c6519cf43
|
@ -21,7 +21,7 @@ def _should_set_millisecond(cr, marking_type):
|
||||||
if marking_type == TLPMarking:
|
if marking_type == TLPMarking:
|
||||||
return True
|
return True
|
||||||
# otherwise, precision is kept from how it was given
|
# otherwise, precision is kept from how it was given
|
||||||
if isinstance(cr, six.text_type):
|
if isinstance(cr, six.string_types):
|
||||||
if '.' in cr:
|
if '.' in cr:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue