gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [RFC 2/3] [AIS] Quick and dirty hack. I don't get what's goin


From: chgans
Subject: [gpsd-dev] [RFC 2/3] [AIS] Quick and dirty hack. I don't get what's going on here
Date: Wed, 23 May 2012 01:03:02 +0100

From: Christian Gagneraud <address@hidden>

---
 devtools/tablegen.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/devtools/tablegen.py b/devtools/tablegen.py
index 4a68b8d..16b7a30 100755
--- a/devtools/tablegen.py
+++ b/devtools/tablegen.py
@@ -270,7 +270,7 @@ def make_json_dumper(wfp):
             continue        
         # At end of tuples, or if scaled flag changes, or if next op is array,
         # flush out dump code for a span of fields.
-        if tuples[i+1][1] == None:
+        if i+1 != len(tuples) and tuples[i+1][1] == None: # Doesn't work for 
array
             endit = r',\"%s\":['
         elif i+1 == len(tuples):
             if not inarray:
-- 
1.7.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]