Mercurial Hosting > traffic-intelligence
comparison python/ubc_utils.py @ 998:933670761a57
updated code to python 3 (tests pass and scripts run, but non-executed parts of code are probably still not correct)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 27 May 2018 23:22:48 -0400 |
parents | 49e99ca34a7d |
children |
comparison
equal
deleted
inserted
replaced
997:4f3387a242a1 | 998:933670761a57 |
---|---|
158 | 158 |
159 if len(lines) != 2: | 159 if len(lines) != 2: |
160 objects.append(obj) | 160 objects.append(obj) |
161 objNum+=1 | 161 objNum+=1 |
162 else: | 162 else: |
163 print("Error two lines of data for feature %d"%(f.num)) | 163 print("Error two lines of data for feature {}".format(f.num)) |
164 | 164 |
165 lines = storage.getLines(file) | 165 lines = storage.getLines(file) |
166 | 166 |
167 file.close() | 167 file.close() |
168 return objects | 168 return objects |