summaryrefslogtreecommitdiff
path: root/maskaudit.py
Commit message (Collapse)AuthorAgeFilesLines
* maskaudit.py: pylint nit, redundant else.Gary E. Miller2018-10-081-2/+2
|
* maskaudit.py: pep8 cleanup.Gary E. Miller2018-07-261-0/+1
| | | | Note the program pep8 is now called pycodestyle
* maskaudit.py: Fix for PEP8Gary E. Miller2018-06-201-4/+4
|
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* maskaudit: fix a pep8 nastyGary E. Miller2017-07-011-2/+2
|
* maskaudit.py: pep8 fixesGary E. Miller2017-07-011-5/+10
|
* Tidy maskaudit.py -dt output by quoting grep input.Rob Norris2016-05-091-2/+2
| | | | | | Otherwise get things like: sh: 1: Syntax error: "(" unexpected (expecting "}") when processing INTERNAL_SET(n)
* Fixes Python programs to use new-style classes.Fred Wright2016-04-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Although this isn't strictly a Python 3 requirement, using the new-style class definition syntax improves consistency between Python 2 and Python 3. Old-style classes have been deprecated since Python 2.2, but many such definitions linger on. Python 3 eliminates old-style classes, but instead of complaining about old-style definitions, it simply unconditionally and silently makes all classes new-style. The only incompatible differences are quite subtle and rarely matter in practice, but things are more consistent across versions if the new-style definitions are used. Also, the preferred method for subclasses to invoke parent init methods is via the super() construct, which is only available with new-style classes. Using super() is especially useful with multiple inheritance, which it handles automatically (provided that the init methods have compatible signatures). TESTED: Using an SConstruct patched to run the build helpers with the target Python, ran "scons build-all check ", as well as gpsprof and xgps, with all six supported Python versions (except 2.6 for xgps).
* Makes "future imports" and Python version comments consistent.Fred Wright2016-04-101-2/+3
| | | | | | | | | | | | | | | | | | | | This makes the "future import" statements consistently specify absolute_import, print_function, and division, for maximum consistency between Python 2 and Python 3. Although absolute_import is probably a don't care for top-level programs, if unit tests were ever implemented for the programs they would be imported as modules, making the module import behavior relevant. Note that previous Python 3 fixes are a prerequisite for this change. Also makes the "polyglot comment" consistent across sources. TESTED: Using a version of SConstruct patched to use the target Python for build helpers, ran "scons build-all check valgrind-audit www/hardware.html" with all six supported Python versions. Also ran gegps, gpscat, gpsprof, xgps, and xgpsspeed with both Python 2 and Python 3.
* De-templatize three files that didn't need it.Eric S. Raymond2016-03-261-0/+158
|
* Generate jsongen.py and maskaudit.py from templates... Greg Troxel2009-11-211-104/+0
| | | | | | | | | | | ...so that @PYTHON@ can be substituted with the discovered path to python. Avoids the nonportable assumption that "/usr/bin/env python" will find python, because on pkgsrc systems python2.5 etc. are installed with no bare python to avoid programs binding to a version (and hence compiled extensions) that might change. This should cause no functional change on systems with 'python', and fix the build on pkgsrc-using systems.
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-1/+0
| | | | | | | That is, instead of sectioning out two little config defines and putting them in. This makes gpsd.h self-copntained (e.g. in case it gets installed as a library header) and means we can get rid of most inclusions of it.
* Typo fix.Eric S. Raymond2009-11-111-1/+1
|
* Splint cleanup. All regression tests pass.Eric S. Raymond2009-11-111-1/+1
|
* whitespace, and fix the printing of empty masksChris Kuethe2009-11-071-10/+10
|
* maskaudit goes to the main directory, since it's now part of the normal build.Eric S. Raymond2009-10-261-0/+105