summaryrefslogtreecommitdiff
path: root/jsongen.py.in
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-28 15:54:13 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-28 15:54:13 -0400
commit707dfbcc87290994bac11f4f54ebe52f26bc5b2c (patch)
treefe5bd07237e7411eb0303028615a028b05a01423 /jsongen.py.in
parent5ce52d829bd559a83c9baf927e3a9e6575a099fd (diff)
downloadgpsd-707dfbcc87290994bac11f4f54ebe52f26bc5b2c.tar.gz
Python glitches caught by pylint.
One could have been a fatal error.
Diffstat (limited to 'jsongen.py.in')
-rw-r--r--jsongen.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsongen.py.in b/jsongen.py.in
index 4475d283..ef2e639b 100644
--- a/jsongen.py.in
+++ b/jsongen.py.in
@@ -756,7 +756,7 @@ def generate(spec):
report += '\t' + header + "\n"
for (attr, itype, default) in spec["fieldmap"]:
if itype == 'array':
- (innerstruct, lengthfield, elements) = default;
+ (innerstruct, lengthfield, elements) = default
report += '\t{"%s",%st_array, STRUCTARRAY(%s.%s, %s_%s_subtype, &%s.%s)},\n' \
% (attr, " "*(14-len(attr)), structname, attr, initname, attr, structname, lengthfield)
else: