Skip to content

Commit

Permalink
fix flake 8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham authored and davidmiller committed Jun 11, 2020
1 parent 8f66c0b commit b1f4018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opal/core/search/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_headers(self):
return result

def serialize_dict(self, some_dict):
return json.dumps(some_dict, cls=DjangoJSONEncoder)
return json.dumps(some_dict, cls=DjangoJSONEncoder)

def serialize_list(self, some_list):
"""
Expand All @@ -107,7 +107,7 @@ def serialize_list(self, some_list):
semicolon seperated list
"""
if len(some_list) and isinstance(some_list[0], dict):
return json.dumps(some_list, cls=DjangoJSONEncoder)
return json.dumps(some_list, cls=DjangoJSONEncoder)
else:
return "; ".join(text_type(i) for i in some_list)

Expand Down

0 comments on commit b1f4018

Please sign in to comment.