Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove support for end-of-life Pythons | Jon Dufresne | 2020-08-31 | 1 | -45/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.7 and 3.4 are end-of-life. They are no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01 and 3.4 on 2019-03-18. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards modern Python 3. Using pypinfo, we can show the PyPI download statistics, showing less than 10% of users are using Python 2.7. | python_version | percent | download_count | | -------------- | ------: | -------------: | | 3.7 | 45.36% | 3,056,010 | | 3.6 | 26.46% | 1,782,778 | | 3.8 | 12.22% | 823,213 | | 2.7 | 9.97% | 671,459 | | 3.5 | 5.86% | 394,846 | | 3.4 | 0.10% | 6,700 | | 3.9 | 0.03% | 2,346 | | 2.6 | 0.00% | 57 | | 3.3 | 0.00% | 21 | | 3.10 | 0.00% | 6 | | Total | | 6,737,436 | Library users who continue to use Python 2.7 will still be able to install previous versions of sqlparse. Compatibility shims have been dropped, simplifying the code. Using pyupgrade, the codebase has been updated to take advantage of modern syntax <https://github.com/asottile/pyupgrade>. The wheel is no longer marked as "universal" as it is now Python 3 only. | ||||
* | Remove unnecessary compat shim for bytes | Jon Dufresne | 2019-03-10 | 1 | -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 Albrecht | 2018-07-31 | 1 | -1/+2 |
| | |||||
* | Remove duplicate StringIO import | Jon Dufresne | 2018-01-04 | 1 | -1/+0 |
| | |||||
* | Correct license link (fixes #288). | Andi Albrecht | 2016-09-14 | 1 | -1/+1 |
| | |||||
* | Decode bytes to unicode in Lexer.get_tokens(). | Oleg Broytman | 2016-08-31 | 1 | -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 Albrecht | 2016-08-10 | 1 | -0/+5 |
| | |||||
* | Update init and misc files | Victor Uriarte | 2016-06-06 | 1 | -1/+1 |
| | |||||
* | Add unicode-str compatible cls decorator | Victor Uriarte | 2016-06-04 | 1 | -0/+10 |
| | |||||
* | Add or Update copyright year to files | Victor Uriarte | 2016-06-04 | 1 | -0/+7 |
| | |||||
* | Replace iter(range(len(...))) with enumerate | Victor Uriarte | 2016-06-02 | 1 | -2/+0 |
| | |||||
* | Bid Adieu to metaclass | Victor Uriarte | 2016-05-29 | 1 | -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 utils | Victor Uriarte | 2016-05-10 | 1 | -6/+17 |
| | |||||
* | Use compat module for single Python 2/3 code base. | Andi Albrecht | 2015-10-26 | 1 | -2/+2 |
| | | | | This change includes minor fixes and code cleanup too. | ||||
* | Add compatibility module from v0.2.0 branch. | Andi Albrecht | 2015-10-26 | 1 | -0/+42 |