New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for python3, remove support for python2 #35
Conversation
|
||
assert path == plotextractor.output_utils.get_image_location( | ||
image, | ||
six.text_type(tmpdir), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need to do six
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need it anymore at all, but it's also not harmful at all. Please notice that it's in many places and I didn't want to loose time on removing it. Of course I can do it if you wish.
b36fcd0
to
a11e105
Compare
@@ -40,6 +39,18 @@ def test_get_image_location_ok(tmpdir): | |||
) | |||
|
|||
|
|||
def test_get_image_location_unicode_path_ok(tmpdir): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also add a test where you put a file path that is not valid UTF-8?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
plotextractor/converter.py
Outdated
|
||
import os | ||
import tarfile | ||
import re | ||
|
||
from time import time | ||
|
||
from subprocess32 import check_output, TimeoutExpired | ||
from subprocess32 import check_output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from subprocess32 import check_output | |
from subprocess import check_output |
subprocess32 is a backport of python 3 subprocess to python 2.
6928b02
to
856e10c
Compare
Sem-Ver: api-breaking
No description provided.