Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Remove superfluous generator
Browse files Browse the repository at this point in the history
  • Loading branch information
cfournie committed Feb 8, 2017
1 parent c913f2f commit caf77ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyoozie/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,7 @@ def _xml(self, doc, tag, text):
return doc

def __nonzero__(self):
return any(x for x in [
self.job_tracker, self.name_node, self.job_xml_files,
self.configuration
])
return any((self.job_tracker, self.name_node, self.job_xml_files, self.configuration))


class Email(Xml):
Expand Down

0 comments on commit caf77ff

Please sign in to comment.