8000 Added mode='wt' to tempfile creation. by rmax · Pull Request #403 · jazzband/pip-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added mode='wt' to tempfile creation. #403

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

Merged
merged 1 commit into from
Oct 20, 2016

Conversation

rmax
Copy link
Contributor
@rmax rmax commented Oct 20, 2016

This allows to write text into the file directly (as stdin.read()
returns a text type and by default tmpfile.write expects bytes).

This allows to write text into the file directly (as stdin.read()
returns a text type and by default tmpfile.write expects bytes).
@rmax
Copy link
Contributor Author
rmax commented Oct 20, 2016

The use case I had is that I wanted to get the results for a single package:

$ echo jsonschema | pip-compile - -o -

Duplicate of #359.

@nvie
Copy link
Member
nvie commented Oct 20, 2016

Thanks!

@nvie nvie merged commit dc49d01 into jazzband:master Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0