Skip to content

Conversation

@wesleybowman
Copy link
Contributor

This change is to update the styling within journal.py to be more consistent with PEP8.


self.send = kwargs.pop('SENDER_FUNCTION', send)
self._extra = kwargs
self.mapPriority = self.map_priority
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to make this a field on the object. I think the following should work:

    @staticmethod
    def map_priority(levelno):
        ...
    mapPriority = map_priority

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@keszybz
Copy link
Member

keszybz commented Mar 14, 2017

Looks OK. I'll squash the two patches though, since the second one is just a fixup right now.

@keszybz keszybz merged commit 73807b4 into systemd:master Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants