Skip to content

Commit ea1e408

Browse files
committed
More style fixes
1 parent 9a504fd commit ea1e408

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stix2/sources/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ def add_filter(self, filters):
263263
break
264264

265265
if allowed:
266-
#no need for further checks if filter is missing parameters
267-
266+
# no need for further checks if filter is missing parameters
267+
268268
# check filter field is a supported STIX 2.0 common field
269269
if filter_['field'] not in STIX_COMMON_FIELDS:
270270
allowed = False
@@ -506,7 +506,7 @@ def add_filter(self, filters):
506506
break
507507

508508
if allowed:
509-
#no reason for further checks if missing filter parameters
509+
# no reason for further checks if missing filter parameters
510510

511511
# check filter field is a supported STIX 2.0 common field
512512
if filter_['field'] not in STIX_COMMON_FIELDS:

stix2/sources/taxii.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, api_root=None, auth=None, name="TAXII"):
2121
if not api_root:
2222
api_root = "http://localhost:5000"
2323
if not auth:
24-
auth = {"user":"admin", "pass":"taxii"}
24+
auth = {"user": "admin", "pass": "taxii"}
2525

2626
self.taxii_info = {
2727
"api_root": {
@@ -117,7 +117,7 @@ def all_versions(self, id_, _composite_filters=None):
117117
Source (if this data source is attached to one)
118118
119119
Returns:
120-
The query results with filters applied.
120+
The query results with filters applied.
121121
"""
122122

123123
# make query in TAXII query format since 'id' is TAXII field

0 commit comments

Comments
 (0)