Skip to content

Commit 3bcf834

Browse files
keflavicheerovaher
andauthored
Update astroquery/simbad/core.py
Co-authored-by: Eero Vaher <[email protected]>
1 parent d20d6dd commit 3bcf834

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

astroquery/simbad/core.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -940,11 +940,8 @@ def _get_query_header(self, get_raw=False):
940940
# if get_raw is set then don't fetch as votable
941941
if get_raw:
942942
return ""
943-
if self.ROW_LIMIT > 0:
944-
RL = "set limit " + str(self.ROW_LIMIT) + "\n"
945-
else:
946-
RL = ""
947-
return RL+"votable {" + ','.join(self.get_votable_fields()) + "}\nvotable open"
943+
row_limit = f"set limit {self.ROW_LIMIT}\n" if self.ROW_LIMIT > 0 else ""
944+
return f"{row_limit}votable {{{','.join(self.get_votable_fields())}}}\nvotable open"
948945

949946
def _get_query_footer(self, get_raw=False):
950947
return "" if get_raw else "votable close"

0 commit comments

Comments
 (0)