More style fixes

stix2.1
Greg Back 2017-05-31 10:02:37 -05:00
parent 9a504fda66
commit ea1e408b50
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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