repo.or.cz
/
python-osm.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
2750dfd
)
Clean up after downloading GPS data
author
Rory McCann
<rory@athena.(none)>
Wed, 13 Aug 2008 16:58:45 +0000
(13 17:58 +0100)
committer
Rory McCann
<rory@athena.(none)>
Wed, 13 Aug 2008 16:58:45 +0000
(13 17:58 +0100)
osm.py
patch
|
blob
|
blame
|
history
diff --git
a/osm.py
b/osm.py
index
b779ba1
..
65ad98d
100755
(executable)
--- a/
osm.py
+++ b/
osm.py
@@
-204,6
+204,7
@@
class GPSData(object):
urllib.urlretrieve(url % page, filename=tmpfilename )
old_points_total = sum(len(way.nodes) for way in self.tracks)
self._parse_file(tmpfilename)
+ os.remove(tmpfilename)
point_last_time = sum(len(way.nodes) for way in self.tracks) - old_points_total
page += 1