diff --git a/sphinxcontrib/opendataservices.py b/sphinxcontrib/opendataservices.py index 2960a51..f95526e 100644 --- a/sphinxcontrib/opendataservices.py +++ b/sphinxcontrib/opendataservices.py @@ -96,14 +96,14 @@ def run(self): title = filename pointed = resolve_pointer(json_obj, self.options['jsonpointer']) # Remove the items mentioned in exclude - if(self.options.get('exclude')): + if self.options.get('exclude'): for item in self.options['exclude'].split(","): try: del pointed[item.strip()] except KeyError: pass - if(self.options.get('include_only')): + if self.options.get('include_only'): for node in list(pointed): if not (node in self.options.get('include_only')): del pointed[node] @@ -183,13 +183,13 @@ def get_csv_data(self): with open(abspath) as fp: json_obj = json.load(fp, object_pairs_hook=OrderedDict) pointed = resolve_pointer(json_obj, self.options['jsonpointer']) - if(self.options.get('exclude')): + if self.options.get('exclude'): for item in self.options['exclude'].split(","): try: del pointed[item.strip()] except KeyError: pass - if(self.options.get('include_only')): + if self.options.get('include_only'): for node in list(pointed): if not (node in self.options.get('include_only')): del pointed[node]