Skip to content

Commit 5989b01

Browse files
committed
Merge branch 'master' of github.com:mvexel/overpass-api-python-wrapper
2 parents 893c588 + a575498 commit 5989b01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Overpass/Overpass.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ def _ConstructError(self, msg):
5959
}
6060

6161
def _ConstructQLQuery(self, userquery):
62-
if self.debug:
63-
print "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
6462
if not userquery.endswith(";"):
6563
userquery += ";"
66-
return "[out:json];" + userquery + "out body;"
64+
fullquery = "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
65+
if self.debug:
66+
print fullquery
67+
return "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
6768

6869
def _GetFromOverpass(self, query):
6970
"""This sends the API request to the Overpass instance and

0 commit comments

Comments
 (0)