Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshadura committed Jan 6, 2019
1 parent b23117a commit 6b4699c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/compile_correction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from __future__ import print_function

Expand Down Expand Up @@ -37,7 +38,7 @@
ts = items["v"]
elif elem.tag == "way":
ts = items.get("timestamp",ts)
print("%s %s %s %s %s %s"% (curway[0][0],curway[0][1],curway[1][0],curway[1][1], user, ts, file=corr)
print("%s %s %s %s %s %s"% (curway[0][0],curway[0][1],curway[1][0],curway[1][1], user, ts), file=corr)
curway = []
user = default_user
ts = ""
3 changes: 2 additions & 1 deletion tools/decompile_correction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from __future__ import print_function

Expand All @@ -21,7 +22,7 @@
nid += 1
print('<node id="-%s" lon="%s" lat="%s" version="1" />'%(nid, b, a), file=out)
nid += 1
print('<way id="-%s" version="1">'%(wid), file=out)
print('<way id="-%s" version="1">'% wid, file=out)
print(' <nd ref="-%s" />'%(nid-2), file=out)
print(' <nd ref="-%s" />'%(nid-1), file=out)
print(' <tag k="%s" v="%s" />"'%("user", user), file=out)
Expand Down

0 comments on commit 6b4699c

Please sign in to comment.