summaryrefslogtreecommitdiff
path: root/gps/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Makes "future imports" and Python version comments consistent.Fred Wright2016-04-101-1/+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.
* Forces Python 3 import behavior in all gps/* modules.Fred Wright2016-04-091-0/+2
| | | | | | | | | | | | This ensures that any future changes that accidentally rely on the Python 2 implicit relative import behavior will fail in Python 2 as well as Python 3. TESTED: Ran "scons build-all check" (with Python 2.7). Also verified that the regression tests and test_maidenhead.py run with Python 2.6, and that gpsfake -T and test_maidenhead.py run with Python 3 when the extensions are built for Python 3 (not yet a build option).
* Forward-port gps/ Python client code to run polyglot under Python 2 or 3.Eric S. Raymond2016-03-221-2/+2
| | | | | | | Verified by testing gpsprof under both versions. leapecond.py is also OK. Not yet polyglot: gegps, gpscap.py, gpscat, gpsfake, jsongen.py, maskaudit.py, test_maidenhead.py, valgrind_audit.py, xgps, xgpsspeed.
* Carry through and document the poll() -> read() change.Eric S. Raymond2010-07-141-2/+2
|
* Split gps.py apart to isolate historical cruft.Eric S. Raymond2010-04-161-0/+4
| | | | No logic changes. All regression tests pass.
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-0/+4
|
* Put Python extension modules under "gps.".Eric S. Raymond2009-12-151-0/+5
The two Python extension modules used for our distribution test clients, gpslib and gpspacket, are now parts of an importable gps package. This change is needed so xgps2 (which is about to replace xgps) can depend only on being able to do "import gps". All regression tests pass.