diff options
-rwxr-xr-x | gps/gps.py | 1 | ||||
-rw-r--r-- | jsongen.py.in | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |