The tempfile stuff was never working for me for some reason. It wrote an
empty file every time.
rct-complete handles stdin, so I switched to using that instead.
I apologize for rewriting the code to be more verbose, but I was dusting off my old (python 2.6) skills and learning about the new bytes vs. strings and such. And I did some so I could follow the code better.
The tempfile stuff was never working for me for some reason. It wrote an empty file every time.
rct-complete
handles stdin, so I switched to using that instead.I apologize for rewriting the code to be more verbose, but I was dusting off my old (python 2.6) skills and learning about the new
bytes
vs.strings
and such. And I did some so I could follow the code better.