Fix some lint

This commit is contained in:
twangboy 2018-12-07 17:30:00 -07:00
parent 1247598f28
commit c55b7b4343
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB
3 changed files with 4 additions and 4 deletions

View file

@ -559,7 +559,7 @@ def set_firewall_settings(profile, inbound=None, outbound=None, store='local'):
def set_logging_settings(profile, setting, value, store='local'):
'''
r'''
Configure logging settings for the Windows firewall.
.. versionadded:: 2018.3.4

View file

@ -137,7 +137,7 @@ except ImportError:
class _policy_info(object):
'''
r'''
Policy Helper Class
===================

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
'''
r'''
A salt util for modifying firewall settings.
.. versionadded:: 2018.3.4
@ -195,7 +195,7 @@ def get_settings(profile, section, store='local'):
ret = {}
# Skip the first 2 lines. Add everything else to a dictionary
for line in results[3:]:
ret.update(dict(map(None, *[iter(re.split(r"\s{2,}", line))]*2)))
ret.update(dict(map(None, *[iter(re.split(r"\s{2,}", line))]*2))) # pylint: disable=incompatible-py3-code
# Remove spaces from the values so that `Not Configured` is detected
# correctly