nicolewhite / cycli

A Command Line Interface for Neo4j's Cypher.
MIT License
272 stars 25 forks source link

File io py3 compatible #60

Closed danodonovan closed 6 years ago

danodonovan commented 6 years ago

Use the io module to handle file IO. This gets around string/byte confusion when running with both python 2 and python 3.

NB This also changes the --filename option to expect a file which exists and return the file's path, rather than returning an open file object. Previously this object was being opened twice.