Fixing pre-commit things

master
Zach Rush 2019-09-11 12:22:55 -04:00
parent e7a6554395
commit afa4af65c6
2 changed files with 10 additions and 10 deletions

View File

@ -15,16 +15,16 @@ from ..utils import NOW, _get_dict
def _should_set_millisecond(cr, marking_type): def _should_set_millisecond(cr, marking_type):
if marking_type == TLPMarking: if marking_type == TLPMarking:
return True
if type(cr) == str:
if '.' in cr:
return True return True
if type(cr) == str: else:
if '.' in cr: return False
return True if cr.precision == 'millisecond':
else: return True
return False return False
if cr.precision == 'millisecond':
return True
return False
class ExternalReference(_STIXBase): class ExternalReference(_STIXBase):

View File

@ -1,7 +1,6 @@
"""STIX 2.1 Common Data Types and Properties.""" """STIX 2.1 Common Data Types and Properties."""
from collections import OrderedDict from collections import OrderedDict
import copy
from ..base import _STIXBase from ..base import _STIXBase
from ..custom import _custom_marking_builder from ..custom import _custom_marking_builder
@ -14,6 +13,7 @@ from ..properties import (
) )
from ..utils import NOW, _get_dict from ..utils import NOW, _get_dict
class ExternalReference(_STIXBase): class ExternalReference(_STIXBase):
# TODO: Add link # TODO: Add link
"""For more detailed information on this object's properties, see """For more detailed information on this object's properties, see