Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | change singleton behavior | Simon Heisterkamp | 2023-01-02 | 1 | -18/+34 |
| | |||||
* | additional documentation | Simon Heisterkamp | 2023-01-02 | 1 | -1/+3 |
| | |||||
* | flake8 | Simon Heisterkamp | 2023-01-02 | 1 | -1/+4 |
| | |||||
* | lexer documentation | Simon Heisterkamp | 2023-01-02 | 1 | -2/+3 |
| | |||||
* | test for changing the regex | Simon Heisterkamp | 2023-01-02 | 1 | -6/+4 |
| | |||||
* | remove type annotations for python 3.5 compatibility | Simon Heisterkamp | 2023-01-02 | 1 | -6/+2 |
| | |||||
* | configurable syntax | Simon Heisterkamp | 2023-01-02 | 1 | -15/+72 |
| | |||||
* | Update copyright notice. | Andi Albrecht | 2020-10-07 | 1 | -1/+1 |
| | |||||
* | Remove support for end-of-life Pythons | Jon Dufresne | 2020-08-31 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+2 |
| | | | | | | | | | | 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 |
| | |||||
* | Fix typostypo | Victor Uriarte | 2017-11-29 | 1 | -1/+1 |
| | |||||
* | Fix encoding logic/order | Victor Uriarte | 2017-01-10 | 1 | -5/+6 |
| | | | | | | - If user provides an encoding value, use it instead of trying to _guess_ first. - If no value is provided, then decode with default of utf-8, otherwise try with unicode-escape | ||||
* | Fix #315 support utf-8 by default | Tao Wang | 2017-01-11 | 1 | -1/+1 |
| | | | | Signed-off-by: Tao Wang <twang2218@gmail.com> | ||||
* | 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 | -5/+16 |
| | | | | | | | 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. | ||||
* | Revert "Parse double dollars (PostgreSQL) as literal strings (fixes #277)." | Victor Uriarte | 2016-08-13 | 1 | -5/+2 |
| | | | | This reverts commit 2893bd1857d685cf892beac3a7429d03cf1a09f1. | ||||
* | Parse double dollars (PostgreSQL) as literal strings (fixes #277). | Andi Albrecht | 2016-08-13 | 1 | -2/+5 |
| | |||||
* | Move file_types list to compat module. | Andi Albrecht | 2016-08-10 | 1 | -9/+1 |
| | |||||
* | Fix a bug: recognize file (Python 2) as a stream | Oleg Broytman | 2016-08-06 | 1 | -1/+7 |
| | |||||
* | Fix parsing of streams (fixes #273). | Andi Albrecht | 2016-07-22 | 1 | -1/+3 |
| | |||||
* | Misc. small code clean-up/comments | Victor Uriarte | 2016-06-18 | 1 | -1/+1 |
| | |||||
* | Redo unicode-encoding on lexer.py | Victor Uriarte | 2016-06-11 | 1 | -11/+4 |
| | |||||
* | Allow re to compile once | Victor Uriarte | 2016-06-04 | 1 | -12/+6 |
| | | | | | Otherwise re will need to recompile everytime a call to tokenize is made. | ||||
* | Simplify multi-line comments | Victor Uriarte | 2016-06-04 | 1 | -28/+6 |
| | |||||
* | Add or Update copyright year to files | Victor Uriarte | 2016-06-04 | 1 | -3/+3 |
| | |||||
* | Replace iter(range(len(...))) with enumerate | Victor Uriarte | 2016-06-02 | 1 | -5/+4 |
| | |||||
* | Pass encoding into lexer as a parameter | Victor Uriarte | 2016-06-02 | 1 | -7/+4 |
| | |||||
* | Simplify handling of encoding in lexer.py | Victor Uriarte | 2016-05-29 | 1 | -22/+10 |
| | |||||
* | Remove encoding guessing on lexer.py | Victor Uriarte | 2016-05-29 | 1 | -11/+1 |
| | |||||
* | Refactor lexer.tokens_unprocessed | Victor Uriarte | 2016-05-29 | 1 | -60/+27 |
| | | | | | | | Remove unused return pos Remove redundant streamer func Remove unreached else statement Clean-up Lexer tokenization | ||||
* | Bid Adieu to metaclass | Victor Uriarte | 2016-05-29 | 1 | -40/+17 |
| | | | | | | | | | | 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. | ||||
* | Merge process_state and __call__ | Victor Uriarte | 2016-05-29 | 1 | -34/+16 |
| | | | | | | | | Other Changes: Only #pop state is used by multiline comments. Remove unused states Simplify RegEx compilation RegEx Exception too generic | ||||
* | Merge process_tokendef and __call__ | Victor Uriarte | 2016-05-29 | 1 | -16/+6 |
| | | | | Remove unused token_variants | ||||
* | Remove assert statements from lexer.py | Victor Uriarte | 2016-05-29 | 1 | -19/+0 |
| | |||||
* | Remove undocumented ws handlers from lexer.py | Victor Uriarte | 2016-05-29 | 1 | -15/+2 |
| | | | | | Removing nl before tokenizing breaks comments (stripnl/stripall) Remove tab-expansion. | ||||
* | Remove unused func/class/args in lexer.py | Victor Uriarte | 2016-05-29 | 1 | -60/+3 |
| | | | | | | Remove unused apply_filters from lexer.py Remove unused filters function from lexer.py Remove unused arguments get_tokens func | ||||
* | Refactor var Lexer.tokens & func is_keyword | Victor Uriarte | 2016-05-29 | 1 | -68/+3 |
| | |||||
* | Don't call is_keyword for the new 'USING(' regex | koljonen | 2016-05-15 | 1 | -1/+1 |
| | |||||
* | Recognize USING as a keyword in 'USING(', not just in 'USING (' | koljonen | 2016-05-14 | 1 | -0/+1 |
| | | | | These were previously caught by (r'[^\W\d_]\w*(?=[.(])', tokens.Name), so I added a special regex just above that one. | ||||
* | fix issue #215 | Shen Longxing | 2015-12-18 | 1 | -1/+1 |
| | | | Add token for 'END WHILE' | ||||
* | Cleanup module code. | Andi Albrecht | 2015-10-26 | 1 | -1/+1 |
| | |||||
* | Fix tab expansion for Python 3. | Andi Albrecht | 2015-10-26 | 1 | -5/+7 |
| | |||||
* | Use compat module for single Python 2/3 code base. | Andi Albrecht | 2015-10-26 | 1 | -13/+16 |
| | | | | This change includes minor fixes and code cleanup too. | ||||
* | Recognize MSSQL temp tables and distinguish from MySQL comments (fixes #192). | Andi Albrecht | 2015-07-26 | 1 | -3/+3 |
| | |||||
* | Never interpret IN keyword as function name (fixes #183). | Andi Albrecht | 2015-04-12 | 1 | -0/+3 |
| | |||||
* | Fix other regex to identify comments starting with '#' character. | Andi Albrecht | 2015-03-16 | 1 | -1/+1 |
| | |||||
* | Support comments starting with '#' character (fixes #178). | Andi Albrecht | 2015-03-16 | 1 | -1/+1 |
| | |||||
* | get rid of tokens.Punctuation.ArrayIndex, add negative lookbehind for sqlite ↵ | Darik Gamble | 2015-03-04 | 1 | -2/+4 |
| | | | | identifiers | ||||
* | Allow identifiers to start with an underscore (fixes #175). | Andi Albrecht | 2015-03-01 | 1 | -2/+1 |
| |