| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes two issues with gpscat in Python 3:
1) The data accumulation buffer needs to be 'bytes' rather than a
'str' in Python 3. This is easily accomplished by using bytes() as
the initializer/reinitializer.
2) The hexdump routine (which was also iterating in a rather strange
way) needs to obtain int values for the characters of the buffer in a
2/3-independent manner. This is easily accomplished by converting it
to a bytearray, which works in both Python 2 and Python 3. This isn't
exactly the same as the Python 3 'bytes' type, since it's
unnecessarily mutable, but it's an easy fix that doesn't require
version conditionals.
Also, test_maidenhead.py works with Python 3 after updating the
libraries, so the shebang line and comments now reflect that.
TESTED:
Ran them under Python 2.6, 2.7, and 3.2-3.5 (with appropriate builds of
the extensions).
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
large scale autopep8 cleanup of several
pep8 whitespace warnings
|
|
|
|
|
|
| |
We've learned that Ubuntu 15.10 will have python3 as default. The ugly
transition gas befun; our only recourse is to hape that all our deployment
targets have 'pyton2' do the right thing. Works on 14.10.
|
| |
|
|
|
|
| |
All regression tests pass with pps=tru or pps=false, PPS is live.
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
| |
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
| |
All regression tests pass, codebase splints clean.
|
|
|
|
| |
This wasn't the documented behavior. Add a clarification, too.
|
| |
|
|
|
|
| |
Now 'make check' runs on NetbSD, and $(prefix)/bin/gpsfake works.
|
|
|
|
|
| |
Addresses Berlios bug #14776: gpsd don't work after python upgrade
from 2.5 to 2.6.
|
|
|
|
|
|
|
|
| |
packet_get() now always returns nonzero when it could either read
fresh data or assemble a packet from data already read and buffered --
no more returning 0 when it has assembled a packet from buffered data
but can't read any new data. I suspect this may have been causing
subtle bugs.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Update the packet regression test load.
Introduce new EOF_PACKET type to signal that the packet getter sees EOF.
All regression tests pass.
|
| |
|
|
|
|
| |
Reenable some debugging in the packet getter, and add a bit more.
|
| |
|
| |
|
|
|
|
| |
...that my TN-200 with firmware 2.3.2 generates those on occasion.
|
|
|
|
|
|
| |
...is currenly emitting 84 character lines. The data is meaningful,
the checksum is correct, I think someone just got a format string
wrong. GPSD is throwing away usable data.
|
|
|
|
| |
some new capabilities.
|
|
|
|
|
| |
gpscat now has an option that tried to invoke it.
All regression tests pass.
|
| |
|
|
|