Skip to content
Prev Previous commit
Next Next commit
Style
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
erlend-aasland and AlexWaygood authored Aug 16, 2023
commit 2e68f63d39aeedd246ae0acd4151da8177c4fece
4 changes: 2 additions & 2 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4832,10 +4832,10 @@ def state_dsl_start(self, line: str) -> None:

@staticmethod
def parse_names(line: str) -> tuple[str, str]:
left, _as, right = line.partition(' as ')
left, as_, right = line.partition(' as ')
full_name = left.strip()
c_basename = right.strip()
if _as and not c_basename:
if as_ and not c_basename:
fail("No C basename provided after 'as' keyword")
if not c_basename:
fields = full_name.split(".")
Expand Down