-
Notifications
You must be signed in to change notification settings - Fork 169
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 some random unicode problems #609
Conversation
looking at other modules in we also should replace all |
and reading files should be to_bytes on the filename too. |
Yet still, this does not work everywhere, and i cannot really pin it down. |
@@ -14,6 +14,7 @@ | |||
from functools import wraps | |||
|
|||
from ansible.module_utils.basic import AnsibleModule | |||
from ansible.module_utils._text import to_bytes |
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.
Is this meant seriously? I need a private interface to do the simple things in 'the right way'?
8336fbc
to
a3ab4e8
Compare
a3ab4e8
to
31dcbcf
Compare
Not entirely convinced here... But this is the best i could come up with. |
0429564
to
0ee5684
Compare
@mdellweg shall this be squashed or rebased? |
It can be merged. The commits were only separate in case we only wanted them selectively. |
I believe https://github.com/psf/requests/pull/3673/files also plays a part in this. |
Probably. Seems to be part of requests v2.12.2. |
Fixes: #608