summaryrefslogtreecommitdiff
path: root/contrib/gps
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2016-04-16 00:01:13 -0700
committerEric S. Raymond <esr@thyrsus.com>2016-04-16 04:25:57 -0400
commit3572ff3f090220021894ed02a7b577b5d286a05e (patch)
tree9b1d5096abb0da9465ab989812cf248b7d5ef3b9 /contrib/gps
parente32a8f856b810486ea260f450611a6e331692f83 (diff)
downloadgpsd-3572ff3f090220021894ed02a7b577b5d286a05e.tar.gz
Fixes contrib/webgps.py for Python 3.
Since the import fallback hack doesn't work properly in Python 3, this gets rid of it and adds a symlink to make the 'gps' package directory directly available here (similar to what was done in devtools). It then makes a few minor fixes for Python 3. The default Python 3 pickle protocol 3 doesn't work in Python 2, but protocol 2 doesn't work correctly in this case either, so there doesn't seem to be any way to make the tracks file backward-compatible. Thus, it just uses the default protocol and punts at load time if the load fails. This change also fixes the reversed skyview, for consistency with pretty much everything else. There was one case where it crashed with a "dictionary changed size" error that appeared to be due to the delete_stale method's deleting a dictionary entry while scanning it, which is a no no. This has also been fixed. Also adds the result files to .gitignore. TESTED: Ran with both Python 2 and Python 3. This included one run of over three hours without any more crashes.
Diffstat (limited to 'contrib/gps')
l---------contrib/gps1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/gps b/contrib/gps
new file mode 120000
index 00000000..3673ce63
--- /dev/null
+++ b/contrib/gps
@@ -0,0 +1 @@
+../gps \ No newline at end of file