Apache augeas clean up (#9114)

The `# self.comment = comment` caught my eye while working on #9071 as well as the intermediate variables, which aren't really needed. As a result, I reformatted the code slightly in those places.

* Remove comment in AugeasCommentNode.__init__

* Replace some intermediate varibles with return-statements in apache augeas parser.

* more clean-up
This commit is contained in:
Mads Jensen
2021-12-02 08:45:16 -07:00
committed by GitHub
parent aeb7beb1b1
commit 402f18e039
7 changed files with 39 additions and 31 deletions
@@ -176,7 +176,6 @@ class VirtualHost:
names=", ".join(self.get_names()),
https="Yes" if self.ssl else "No"))
def __eq__(self, other):
if isinstance(other, self.__class__):
return (self.filep == other.filep and self.path == other.path and