| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Catching all exceptions is generally considered a bad practice under
most circumstances as it will also catch KeyboardInterrupt and
SystemExit. These special cases should be raised to the interpreter to
allow the Python process to exit.
This fix complies with pycodestyle's error code E722:
https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
> do not use bare except, specify exception instead
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The psyco package has been declared umaintained and dead. It is no
longer receiving bug fixes including for security issues. From
http://psyco.sourceforge.net/
> 12 March 2012
>
> Psyco is unmaintained and dead. Please look at PyPy for the
> state-of-the-art in JIT compilers for Python.
Avoid recommending the use of an unmaintained package (since 2012).
Users can continue to use PyPy for the latest and greatest in Python
JIT.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unused imports were discovered using flake8. By removing the unused
imports, the code is a bit friendlier to new contributors as it is
clearer what is being used and not simply leftover from previous
refactoring.
The flake8 command:
$ flake8 . --select F401
http://flake8.pycqa.org/
|
|
|
|
| |
pyparsing features
|
|
|
|
|
|
| |
Many editors clean up trailing white space on save. By removing it all
in one go, it helps keep future diffs cleaner by avoiding spurious white
space changes on unrelated lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The all caps "UTF-8" causes warnings or errors in some editors. "utf-8"
is more widely recognized. For example, when opening files in Emacs, I
see:
> Warning (mule): Invalid coding system ‘UTF-8’ is specified
> for the current buffer/file by the :coding tag.
> It is highly recommended to fix it before writing to a file.
> Really proceed with writing? (yes or no)
I'm then promped before saving.
The CPython source code uses the lowecase form.
|
|
|
|
| |
Fixes #48
|
|
|
|
| |
typo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__Set()__ is an _undefined name_ in this context but __set()__ is used elsewhere in this class.
[flake8](http://flake8.pycqa.org) testing of https://github.com/pyparsing/pyparsing on Python 3.7.1
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./examples/searchParserAppDemo.py:15:18: F821 undefined name 'Set'
result = Set()
^
1 F821 undefined name 'Set'
1
```
|
| |
|
| |
|
|
|
| |
Update test strings to demonstrate fix in group_by_terms results - original bug was reported on SF bugs by Adam Groszer
|
|
|
| |
Results name "group_by_terms" was defined at the wrong level in the "having_expr", causing those names to be left out of the results.
|
|
|