-
Notifications
You must be signed in to change notification settings - Fork 532
fixing unicode_literals issues #1638
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
Conversation
Let me add FreeSurfer to the testing image, we could be missing something we are not currently testing. |
@@ -211,7 +211,7 @@ def __init__(self, **inputs): | |||
def _num_threads_update(self): | |||
if self.inputs.num_threads: | |||
self.inputs.environ.update( | |||
{'OMP_NUM_THREADS': str(self.inputs.num_threads)}) | |||
{'OMP_NUM_THREADS': bytes(self.inputs.num_threads)}) |
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.
Python 2:
>>> bytes(5)
'5'
Python 3:
>>> bytes(5)
b'\x00\x00\x00\x00\x00'
I suspect what you want is:
>>> str(5).encode()
b'5'
Current coverage is 71.09% (diff: 100%)@@ master #1638 diff @@
==========================================
Files 1028 1030 +2
Lines 50616 51927 +1311
Methods 0 0
Messages 0 0
Branches 7333 7346 +13
==========================================
+ Hits 35994 36919 +925
- Misses 13495 13890 +395
+ Partials 1127 1118 -9
|
@bpinsard - can you check if current master fixes your issues? i cannot get this line to error using current master in either py27 or py35:
|
@bpinsard - can you let us know if this still an issue with current master? |
@oesteban yes it seems that it is fixed now. |
see #1621
fixes my problems