From b8205f11a85e463398e96273aeeec6089118fdac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 28 Jul 2016 09:50:46 +0200 Subject: [PATCH] Fix PEP8 --- pymisp/api.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pymisp/api.py b/pymisp/api.py index 34ce17a..be40010 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -225,18 +225,16 @@ class PyMISP(object): """ out_format = out_format.lower() if tags: - if isinstance(tags, list): - tags = "&&".join(tags) - + if isinstance(tags, list): + tags = "&&".join(tags) + session = self.__prepare_session(out_format) - url = urljoin(self.root_url, - "/events/stix/download/{}/{}/{}/{}/{}".format( - event_id, with_attachments, tags, from_date, to_date - )) + url = urljoin(self.root_url, "/events/stix/download/{}/{}/{}/{}/{}".format( + event_id, with_attachments, tags, from_date, to_date)) if self.debug: - print("Getting STIX event from {}".format(url)) + print("Getting STIX event from {}".format(url)) return session.get(url) - + def add_event(self, event, force_out=None): """ Add a new event