summaryrefslogtreecommitdiff
path: root/test_maidenhead.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes some pylint issues.Fred Wright2017-07-141-0/+1
| | | | | | | | | | | 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.
* test_m*.py: pep8 fixes.Gary E. Miller2017-07-011-1/+2
|
* test_maidenhead.py: pep8 fixesGary E. Miller2017-07-011-1/+2
|
* Makes "future imports" and Python version comments consistent.Fred Wright2016-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | 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.
* Fixes gpscat and test_maidenhead.py for Python 3.Fred Wright2016-04-091-1/+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).
* Forward-port Python utilities to run polyglot under either Python 2 or 3.Eric S. Raymond2016-03-221-3/+5
| | | | | | 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.
* Change Python hashbang lines to invoke 'python2'Eric S. Raymond2015-07-191-1/+1
| | | | | | 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.
* pep8 cleanup for whitespace in test_maidenhead.pyJon Schlueter2015-03-021-5/+4
|
* Count the errors in the maidenhead regression test driverBeat Bolli2011-05-071-0/+1
|
* Fixes for the Maidehead locator code, and a better regression test.Eric S. Raymond2011-05-061-0/+30