summaryrefslogtreecommitdiff
path: root/gpscap.py
Commit message (Collapse)AuthorAgeFilesLines
* gpscap.py: Fix for PEP8Gary E. Miller2018-06-201-8/+8
|
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* gpscap.py: 'nother pep8 fixGary E. Miller2017-07-011-1/+1
|
* gpscap.py: pep8 fixesGary E. Miller2017-07-011-23/+54
|
* Fixes broken build of www/hardware.html.Fred Wright2017-03-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Commit 8200880a (polyglot rework) broke the build of hardware.html, due to problems with default encodings in gpscap.py. This went unnoticed for nearly a year since the 'www' target is not part of the default build, and because the failure didn't propagate to an overall build failure. Since the intended encoding for both the input and output is UTF-8, this is fixed by specifying that encoding explicitly. This needs to be done in two places: 1) The invocation of the ConfigParser's read() method needs to specify the encoding of the input. This argument isn't available in Python 2.6, so there's a fallback for that case (where it's unneeded). 2) The encoding of the piped output needs to be specified. This is done by setting the PYTHONIOENCODING environment variable when running gpscap.py. TESTED: Ran "scons build-all www check". Verified that the output looks plausible in a browser, including the two umlauted characters. Also verified that running gpscap.py standalone (with PYTHONIOENCODING set) works correctly with all supported Python versions.
* 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.
* Add comment that should have gone in last commit.Eric S. Raymond2016-03-221-0/+1
|
* Forward-port Python utilities to run polyglot under either Python 2 or 3.Eric S. Raymond2016-03-221-11/+14
| | | | | | For the moment most shebang lines still say 'python2' rather than just 'python'. This is because the client code in gps/ hasn't been touched yet; the internal imports break under Python 3 and that needs to be fixed.
* [pep8] autopep8 whitespace cleanupJon Schlueter2016-02-091-0/+1
| | | | | large scale autopep8 cleanup of several pep8 whitespace warnings
* Add some SEO to the hardware page.Gary E. Miller2015-04-131-3/+3
|
* Add mouseover text for udev (!) iconSanjeev Gupta2015-04-111-1/+1
| | | | Signed-off-by: Gary E. Miller <gem@rellim.com>
* Fix hardware.html CSS.Gary E. Miller2015-04-101-4/+4
|
* The generated hardware.html is now valid html5.Gary E. Miller2015-04-101-3/+3
|
* pylint cleanup of gpscap.py. Live test works.Eric S. Raymond2015-02-221-1/+1
|
* Contain the assumption that time hinting is done to NTPD.Eric S. Raymond2013-10-311-5/+5
| | | | | | | Because it might be going to chrony. Or something else. No logic changes, just name changes and one new derived #define, TIMEHINT_ENABLE.
* Revert "Separate ntpd support from chrony support, step 1."Eric S. Raymond2013-10-301-5/+5
| | | | We'll have to sneak up on this change more slowly.
* Separate ntpd support from chrony support, step 1.Eric S. Raymond2013-10-301-5/+5
| | | | | | | | | | | | | ntp_offset becomes time_offset. There is a new config symbol CHRONY_ENABLE; most time service code is npw controlled by TIMESERVICE_ENABLE. The file ntpshm.c becomes timeexport.c This change is not complete. More disentanglement has to be done inside timeexport.c itself; at the moment enabling one but not both of ntpshm or chrony will probably break its compile. The point of getting this commit out is so Gary will see the new baseline code ASAP. All regression tests pass.
* Update the hardware database; add a regression test for the GR601-W.Eric S. Raymond2013-10-241-1/+1
|
* Finish website validation.Eric S. Raymond2013-02-251-2/+2
|
* Move NTP information into the main hardware table.Eric S. Raymond2013-01-171-0/+13
|
* Better handling of discontinued attribute.Eric S. Raymond2012-05-301-1/+1
|
* Better recording of configuration sanity.Eric S. Raymond2012-05-301-3/+2
|
* Changed our HTML conformance target from XHTML to HTML 4.01.Eric S. Raymond2011-10-041-10/+10
|
* All pages claimed to be W3C valid actually are (again).Eric S. Raymond2011-10-041-4/+4
|
* More website cleanup.Eric S. Raymond2011-10-041-9/+9
| | | | | Except for bgcolor, width, and border attributes, all pages that claim to be validated actually are valid (again).
* Display vendor notes in the HTML of the hardware table.Eric S. Raymond2011-09-291-2/+6
|
* Improved building of the hardware page.Eric S. Raymond2011-02-171-2/+6
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-0/+2
|
* Fix a mismatch between gppscap.py and the report CGI.Eric S. Raymond2010-01-021-5/+5
|
* Corrections for Garmin GPS-76b and an HTML bug in code generated by gpscap.pyEric S. Raymond2009-11-191-1/+1
|
* Add a hotplug icon to the capability chart.Eric S. Raymond2009-08-311-6/+9
|
* Make the submitter field a unform feature in gpscap records...Eric S. Raymond2009-08-121-1/+8
| | | | ...rather than stashing it in the Notes field a lot of the time.
* reference -> techdocEric S. Raymond2009-08-111-4/+4
|
* Allow separate reference documents to be specified for the chipset and deviceChris Kuethe2009-01-271-1/+3
|
* Include the -b glitch in the hardware table.Eric S. Raymond2009-01-211-0/+2
|
* Give the compatibility table a useful caption.Eric S. Raymond2009-01-211-2/+3
|
* Add some devices for which we have regression tests.Eric S. Raymond2009-01-211-1/+1
|
* GPSes in the hardware table now feature Michelin rating...Eric S. Raymond2009-01-201-11/+22
| | | | ...and the occasional bomb :-)
* Show PPS in the hardware table.Eric S. Raymond2009-01-201-1/+4
|
* Reintroduce the status field. Factor out more engine entries.Eric S. Raymond2009-01-201-2/+7
|
* Now in brilliant color...Eric S. Raymond2009-01-201-2/+14
|
* We can now generate a better hardware data dable fom the database.Eric S. Raymond2009-01-201-1/+51
|
* Add some sanity checks in the wrapper class, and tweak the DB so it passes.Eric S. Raymond2009-01-201-1/+19
|
* Part-conversion of hardware reference page to capability database...Eric S. Raymond2009-01-191-0/+35
..and a Python wrapper class that parses it.