Skip to content

[libc++] Avoid duplicate LWGXYZ prefixes in status tables #148874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libcxx/utils/synchronize_csv_status_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def from_github_issue(issue: Dict):# -> PaperInfo:

return PaperInfo(
paper_number=paper,
paper_name=issue['title'],
paper_name=issue['title'].removeprefix(paper + ': '),
status=PaperStatus.from_github_issue(issue),
meeting=issue.get('meeting Voted', None),
first_released_version=None, # TODO
Expand Down Expand Up @@ -269,14 +269,14 @@ def merge(paper: PaperInfo, gh: PaperInfo) -> PaperInfo:

def load_csv(file: pathlib.Path) -> List[Tuple]:
rows = []
with open(file, newline='') as f:
with open(file, newline='', encoding='utf-8') as f:
reader = csv.reader(f, delimiter=',')
for row in reader:
rows.append(row)
return rows

def write_csv(output: pathlib.Path, rows: List[Tuple]):
with open(output, 'w', newline='') as f:
with open(output, 'w', newline='', encoding='utf-8') as f:
writer = csv.writer(f, quoting=csv.QUOTE_ALL, lineterminator='\n')
for row in rows:
writer.writerow(row)
Expand Down Expand Up @@ -417,7 +417,7 @@ def main(argv):
# Load all the Github issues tracking papers from Github.
if args.load_github_from:
print(f"Loading all issues from {args.load_github_from}")
with open(args.load_github_from, 'r') as f:
with open(args.load_github_from, 'r', encoding='utf-8') as f:
project_info = json.load(f)
else:
print("Loading all issues from Github")
Expand Down
Loading