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):
if marking_type == TLPMarking:
if marking_type == TLPMarking:
return True
if type(cr) == str:
if '.' in cr:
return True
if type(cr) == str:
if '.' in cr:
return True
else:
return False
if cr.precision == 'millisecond':
return True
return False
else:
return False
if cr.precision == 'millisecond':
return True
return False
class ExternalReference(_STIXBase):

View File

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