Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jun 29, 2017
2 parents 36556e0 + 15bdbe3 commit b1645ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name='thehive4py',
version='1.2.0',
version='1.2.1',
description='Python API client for TheHive.',
long_description=read_md('README.md'),
author='TheHive-Project',
Expand All @@ -33,5 +33,5 @@
'Topic :: Software Development :: Libraries :: Python Modules'
],
include_package_data=True,
install_requires=['requests']
install_requires=['future', 'requests', 'python-magic']
)
2 changes: 1 addition & 1 deletion thehive4py/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@ def _prepare_file_data(self, file_path):
mime = magic.Magic(mime=True).from_file(file_path)
encoded_string = base64.b64encode(file_artifact.read())

return filename + ';' + mime + ';' + encoded_string;
return "{};{};{}".format(filename, mime, encoded_string.decode())

0 comments on commit b1645ee

Please sign in to comment.