mirror of
https://github.com/mandiant/capa.git
synced 2026-01-07 02:04:11 -08:00
pep8
This commit is contained in:
@@ -221,7 +221,8 @@ def parse_description(s, value_type, description=None):
|
||||
if value_type != "string" and isinstance(s, six.string_types) and DESCRIPTION_SEPARATOR in s:
|
||||
if description:
|
||||
raise InvalidRule(
|
||||
'unexpected value: "%s", only one description allowed (inline description with `%s`)' % (s, DESCRIPTION_SEPARATOR)
|
||||
'unexpected value: "%s", only one description allowed (inline description with `%s`)'
|
||||
% (s, DESCRIPTION_SEPARATOR)
|
||||
)
|
||||
value, _, description = s.rpartition(DESCRIPTION_SEPARATOR)
|
||||
if description == "":
|
||||
|
||||
Reference in New Issue
Block a user