Skip to content

Commit

Permalink
fix: Python < 3.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jul 18, 2019
1 parent 9d0be8d commit 4ade9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymisp/mispevent.py
Expand Up @@ -727,7 +727,7 @@ def run_expansions(self):
try:
from .tools import make_binary_objects
except ImportError as e:
logger.info(f'Unable to load make_binary_objects: {e}')
logger.info('Unable to load make_binary_objects: {}'.format(e))
continue
file_object, bin_type_object, bin_section_objects = make_binary_objects(pseudofile=attribute.malware_binary, filename=attribute.malware_filename)
self.add_object(file_object)
Expand All @@ -738,7 +738,7 @@ def run_expansions(self):
self.add_object(bin_section_object)
self.attributes.pop(index)
else:
logger.warning(f'No expansions for this data type ({attribute.type}). Open an issue if needed.')
logger.warning('No expansions for this data type ({}). Open an issue if needed.'.format(attribute.type))

def __repr__(self):
if hasattr(self, 'info'):
Expand Down

0 comments on commit 4ade9b8

Please sign in to comment.