| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
using_each to define multiple related Keywords; used f-string instead of str addition to build up identifier1 expr; merged alternative Regex exprs to single Regex in udpInitVal; change setName to set_name throughout; ZeroOrMore and OneOrMore to [...] and [1, ...] throughout; convert most Optional(expr) to (expr | ""); add ParseException.explain() to test() function
|
|
|
|
| |
time.time() to time.perf_counter()
|
| |
|
| |
|
|
|
|
| |
creating railroad diags; changed create_diagram from monkeypatch to included method on ParserElement; better debug exception if Dict is constructed with non-Group expression
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The pyupgrade project is available at
https://github.com/asottile/pyupgrade and can be installed through pip.
The pyupgrade tool automatically upgrades syntax for newer versions of
the language. As pyparsing is now Python 3 only, can apply some cleanups
and simplifications. Ran the tool using the following command:
$ find . -name \*.py -exec pyupgrade --py3-plus {} \;
For now, pyparsing.py was skipped while it is refactored to a package.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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/
|
|
|
|
|
|
| |
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.
|
|
|