mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 01:08:48 -03:30
move code linting to a stricter pep8-esque auto-formatting tool, black
This commit is contained in:
@@ -48,10 +48,8 @@ def validate_pem(data, min_keys=0, max_keys=None, min_certs=0, max_certs=None):
|
||||
|
||||
# Build regular expressions for matching each object in the PEM file.
|
||||
pem_obj_re = re.compile(
|
||||
r'^(?P<dashes>-{4,}) *BEGIN (?P<type>[A-Z ]+?) *(?P=dashes)' +
|
||||
r'\s*(?P<data>.+?)\s*' +
|
||||
r'(?P=dashes) *END (?P=type) *(?P=dashes)' +
|
||||
r'(?P<next>.*?)$', re.DOTALL
|
||||
r'^(?P<dashes>-{4,}) *BEGIN (?P<type>[A-Z ]+?) *(?P=dashes)' + r'\s*(?P<data>.+?)\s*' + r'(?P=dashes) *END (?P=type) *(?P=dashes)' + r'(?P<next>.*?)$',
|
||||
re.DOTALL,
|
||||
)
|
||||
pem_obj_header_re = re.compile(r'^(.+?):\s*?(.+?)(\\??)$')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user