-
Notifications
You must be signed in to change notification settings - Fork 207
Enforce UTF8 encoding because that is not default on Windows #254
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
I think #246 had the right approach of always trying to use utf-8. The only thing is that I never had the time to understand why the tests were failing ... |
If situation is dire enough, maybe this can be a "quick fix" until the other one has a chance to be investigated. This patch works for my use case and I have no motivation to investigate further. |
else: | ||
open_kwargs = {} | ||
|
||
example_code_obj = identify_names(open(example_file, **open_kwargs).read()) |
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.
This is not going to work on Python 2.
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.
I'm running Python2 and it seems to work
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.
... oh wait, I thought this was on my PR, never mind!
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.
@lesteve , what do you mean? The tests passed.
They are related in the sense that we should be using |
Indeed. I wasn't specific enough either. This PR is targeting other place in the codebase which is not what PR #246 is covering. We still need to fix it here too. |
Fix #253
Also see astropy/sphinx-automodapi#29
UPDATE: Close #246