We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d20d6dd commit 3bcf834Copy full SHA for 3bcf834
astroquery/simbad/core.py
@@ -940,11 +940,8 @@ def _get_query_header(self, get_raw=False):
940
# if get_raw is set then don't fetch as votable
941
if get_raw:
942
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"
+ row_limit = f"set limit {self.ROW_LIMIT}\n" if self.ROW_LIMIT > 0 else ""
+ return f"{row_limit}votable {{{','.join(self.get_votable_fields())}}}\nvotable open"
948
949
def _get_query_footer(self, get_raw=False):
950
return "" if get_raw else "votable close"
0 commit comments