Skip to content

Commit f15a163

Browse files
author
Evan D
authored
Replace a comprehension with a cast
1 parent fbc662a commit f15a163

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

overpass/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ def get(self, query, responseformat="geojson", verbosity="body", build=True, dat
111111
if self.debug:
112112
print(content_type)
113113
if content_type == "text/csv":
114-
reader = csv.reader(StringIO(r.text), delimiter="\t")
115-
return [row for row in reader]
114+
return list(csv.reader(StringIO(r.text), delimiter="\t"))
116115
elif content_type in ("text/xml", "application/xml", "application/osm3s+xml"):
117116
return r.text
118117
else:

0 commit comments

Comments
 (0)