summaryrefslogtreecommitdiff
path: root/sqlparse/compat.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary compat shim for bytesJon Dufresne2019-03-101-2/+0
| | | | | | | | | | Both Python 2.7 and Python 3 have the type bytes. On Python 2.7, it is an alias of str, same as was previously defined in compat.py. Makes the code slightly more compatible with Python 3 style syntax. Observe: $ python2 >>> bytes <type 'str'>
* Update copyright header (fixes #372).Andi Albrecht2018-07-311-1/+2
|
* Remove duplicate StringIO importJon Dufresne2018-01-041-1/+0
|
* Correct license link (fixes #288).Andi Albrecht2016-09-141-1/+1
|
* Decode bytes to unicode in Lexer.get_tokens().Oleg Broytman2016-08-311-14/+2
| | | | | | | Raise TypeError if the input is neither bytes in a known encoding nor unicode nor a file-like object (file, StringIO). Remove function u(). Add bytes_type to compat. Add tests for non-ascii.
* Move file_types list to compat module.Andi Albrecht2016-08-101-0/+5
|
* Update init and misc filesVictor Uriarte2016-06-061-1/+1
|
* Add unicode-str compatible cls decoratorVictor Uriarte2016-06-041-0/+10
|
* Add or Update copyright year to filesVictor Uriarte2016-06-041-0/+7
|
* Replace iter(range(len(...))) with enumerateVictor Uriarte2016-06-021-2/+0
|
* Bid Adieu to metaclassVictor Uriarte2016-05-291-15/+1
| | | | | | | | | | The singleton pattern isn't applicable since only one language is being implemented. Simplify Lexer initialization. Fix compat func `u` on Py3. Signature didn't match Py2. Feature isn't used yet.
* Update compat and utilsVictor Uriarte2016-05-101-6/+17
|
* Use compat module for single Python 2/3 code base.Andi Albrecht2015-10-261-2/+2
| | | | This change includes minor fixes and code cleanup too.
* Add compatibility module from v0.2.0 branch.Andi Albrecht2015-10-261-0/+42