diff --git a/stix2/sources/__init__.py b/stix2/sources/__init__.py index eecb447..f30e815 100644 --- a/stix2/sources/__init__.py +++ b/stix2/sources/__init__.py @@ -263,8 +263,8 @@ class CompositeDataSource(object): break if allowed: - #no need for further checks if filter is missing parameters - + # no need for further checks if filter is missing parameters + # check filter field is a supported STIX 2.0 common field if filter_['field'] not in STIX_COMMON_FIELDS: allowed = False @@ -506,7 +506,7 @@ class DataSource(object): break if allowed: - #no reason for further checks if missing filter parameters + # no reason for further checks if missing filter parameters # check filter field is a supported STIX 2.0 common field if filter_['field'] not in STIX_COMMON_FIELDS: diff --git a/stix2/sources/taxii.py b/stix2/sources/taxii.py index aa1b224..09c1b9d 100644 --- a/stix2/sources/taxii.py +++ b/stix2/sources/taxii.py @@ -21,7 +21,7 @@ class TAXIIDataSource(DataSource): if not api_root: api_root = "http://localhost:5000" if not auth: - auth = {"user":"admin", "pass":"taxii"} + auth = {"user": "admin", "pass": "taxii"} self.taxii_info = { "api_root": { @@ -117,7 +117,7 @@ class TAXIIDataSource(DataSource): Source (if this data source is attached to one) Returns: - The query results with filters applied. + The query results with filters applied. """ # make query in TAXII query format since 'id' is TAXII field