summaryrefslogtreecommitdiff
path: root/sqlparse/cli.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix unclosed file warnings discovered during testsJon Dufresne2017-10-281-2/+5
| | | | | | | | Appear as: ResourceWarning: unclosed file ... Always explicitly close files or detach file wrappers.
* Close files during tests.Andi Albrecht2017-09-241-1/+6
|
* CLI: Add --encoding optionTao Wang2017-01-121-6/+15
| | | | | | | | * Add `--encoding` option with default utf-8 * Make sure input and output are in same encoding * Add test cases Signed-off-by: Tao Wang <twang2218@gmail.com>
* Add formatter option for comma first notation (fixes #141).Andi Albrecht2016-09-141-0/+7
|
* Correct license link (fixes #288).Andi Albrecht2016-09-141-1/+1
|
* Convert string literals to unicode for Py27Oleg Broytman2016-08-311-4/+5
| | | | | | Working with non-ascii in Python require all-unicode approach, but str literals in Python 2.7 are bytes. The patch makes them unicode. Syntax u'' is supported in Python 2.7 and 3.3+.
* Format cli.py and add cli-testsVictor Uriarte2016-06-201-7/+5
|
* Misc. small code clean-up/commentsVictor Uriarte2016-06-181-0/+1
|
* Separate __main__ and main() to allow for testingVictor Uriarte2016-06-151-0/+163
Also reference example in: https://github.com/ionelmc/cookiecutter-pylibrary