summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgps/gps.py1
-rw-r--r--jsongen.py.in3
2 files changed, 2 insertions, 2 deletions
diff --git a/gps/gps.py b/gps/gps.py
index f3b2ca51..ff60729f 100755
--- a/gps/gps.py
+++ b/gps/gps.py
@@ -249,7 +249,6 @@ class gps(gpscommon, gpsdata, gpsjson):
if self.response.startswith("{") and self.response.endswith("}\r\n"):
self.unpack(self.response)
self.__oldstyle_shim()
- self.newstyle = True
self.valid |= PACKET_SET
return 0
diff --git a/jsongen.py.in b/jsongen.py.in
index f3121de0..6dbd93c6 100644
--- a/jsongen.py.in
+++ b/jsongen.py.in
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!/usr/bin/env python
#
# @MASTER@
#
@@ -10,6 +10,7 @@
# This code generates template declarations for AIS-JSON parsing from a
# declarative specification of a JSON structure.
#
+# This code runs under both Python 2 and Python 3. Preserve this property!
from __future__ import print_function
import sys, getopt