sqlalchemyorg / zimports

Python import rewriter
MIT License
75 stars 6 forks source link

Use stdin/stdout when the filename is "-" #18

Closed schmir closed 4 years ago

schmir commented 4 years ago

Previously one could use 'zimports --stdout /dev/stdin' to read from stdin and write to stdout. This at least worked on Linux.

With this commit we support "-" as filename, which makes zimports read from stdin and write to stdout.

zzzeek commented 4 years ago

very nice, works great!

zzzeek commented 4 years ago

also I apologize that zimports does not have a changelog as of yet. for the moment the changes in github sort of serve that purpose :/

schmir commented 4 years ago

that's not a problem for me. but, can we have a new release on PyPI?

zzzeek commented 4 years ago

ok that is up 0.2.2