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 59d4ab9 commit 5b40e02Copy full SHA for 5b40e02
circuitpython_csv.py
@@ -233,8 +233,7 @@ def __init__(
233
234
def writeheader(self) -> None:
235
"""Writes the header row to the CSV file"""
236
- header = dict(zip(self.fieldnames, self.fieldnames))
237
- return self.writerow(header)
+ self.writerow(dict(zip(self.fieldnames, self.fieldnames)))
238
239
def _dict_to_list(self, rowdict: Dict[str, Any]) -> Sequence[Any]:
240
if self.extrasaction == "raise":
0 commit comments