-
Notifications
You must be signed in to change notification settings - Fork 370
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
Fix for #406 (ascii issue) #536
Conversation
@hakonsbm, thanks for your PR! By analyzing the history of the files in this pull request, we identified @otizonaizit, @apeyser and @jougs to be potential reviewers. |
@hakonsbm: can you please remove the trailing whitespace in pynest/pynestkernel.pyx? Thanks! |
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.
LGTM.
@apeyser Could you have a look at this one and see if it is ready for a second thumb up? |
I'd suggest wrapping up
just to remove the repeated ifs scattered through the code. |
@apeyser Something like this? |
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.
Just fix up the spacing and approved.
|
||
def decode(s): return s.decode('utf-8') | ||
def decode(s): | ||
return s.decode('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.
Add a newline after this
@@ -82,19 +82,21 @@ def catching_sli_run(cmd): | |||
""" | |||
|
|||
if sys.version_info >= (3,): | |||
engine.run('{%s} runprotected' % cmd) # Python 3 | |||
def encode(s): return s |
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.
Precisely like this. The rest of the code is simplified and clear.
@apeyser Fixed. |
PyNEST will now raise a
NESTError
when trying to use non-ascii characters under Python 2.7.We did not manage to find a way to make PyNEST work with non-ascii characters under Python 2.7. Note that this works under Python 3.