Mercurial > hg > nsaunier > traffic-intelligence
comparison python/utils.py @ 233:ab1a11176d7b
initial sqlite code and bug corrected in cvutils
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 04 Jul 2012 16:02:00 -0400 |
| parents | ca9d9104afba |
| children | 584613399513 |
comparison
equal
deleted
inserted
replaced
| 232:04355e51d895 | 233:ab1a11176d7b |
|---|---|
| 315 def line2Ints(l, separator=' '): | 315 def line2Ints(l, separator=' '): |
| 316 '''Returns the list of ints corresponding to the string''' | 316 '''Returns the list of ints corresponding to the string''' |
| 317 return [int(x) for x in l.split(separator)] | 317 return [int(x) for x in l.split(separator)] |
| 318 | 318 |
| 319 ######################### | 319 ######################### |
| 320 # sqlite | |
| 321 ######################### | |
| 322 | |
| 323 #def dropTable(db, tableName): | |
| 324 | |
| 325 | |
| 326 #def removeObjectsSqlite(filename): | |
| 327 # 'Removes the objects and object_features tables in the filename' | |
| 328 | |
| 329 ######################### | |
| 320 # running tests | 330 # running tests |
| 321 ######################### | 331 ######################### |
| 322 | 332 |
| 323 if __name__ == "__main__": | 333 if __name__ == "__main__": |
| 324 import doctest | 334 import doctest |
