| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Some Python installs (notably some NetBSD versions) lack the curses
package. Since its only use here was for the printable character test,
derive a test from string.printable instead.
TESTED:
Tested (in raw mode) with a receiver mixing NMEA and binary, with
Python 2.6, 2.7, and 3.2-3.7, observing proper printability filtering.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
A tilda, not a dash.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When reading from a file in packetizer mode, gpscat correctly
terminates at EOF. However, in raw mode it simply hung in a loop
retrying the read. This change makes it exit on EOF.
This change also removes the useless buffer append logic in raw mode,
which was a leftover from the old code that attempted to break on
newlines (removed by commit e4cbd2daf).
TESTED:
Ran gpscat in raw mode on all test/daemon log files, and observed
proper termination. Tested with Python 2.7 and Python 3.5.
|
|
|
|
|
|
|
|
|
|
|
| |
This doesn't fix all complaints by pylint, but significantly
reduces their number. Ditto for pep8 complaints.
Also makes a couple of related cosmetic edits.
TESTED:
Ran "scons build-all check" with no errors.
Both "pylint" and "pep8" targets report fewer issues.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Although poll() is generally preferred to select() in C code, in
Python, select.poll is considered OS-dependent, and is missing in some
Python versions, notably in some OSX cases. Since gpscat is not a
performance-critical application, simply using the older but more
portable select.select is preferable to some fancier scheme using
different methods on different OSes.
TESTED:
Ran gpscat on OSX with all supported Python versions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|