mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
style: use indent=4 for all json.dumps calls
This commit is contained in:
parent
4763582c9e
commit
cb7879a89a
1 changed files with 4 additions and 4 deletions
|
@ -43,16 +43,16 @@ def process_markdown(filename):
|
||||||
results.append(section_result)
|
results.append(section_result)
|
||||||
|
|
||||||
# Output the results as JSON
|
# Output the results as JSON
|
||||||
print(json.dumps(results, indent=2))
|
print(json.dumps(results, indent=4))
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print(json.dumps({"error": f"File '{filename}' not found."}))
|
print(json.dumps({"error": f"File '{filename}' not found."}, indent=4))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(json.dumps({"error": f"An error occurred: {str(e)}"}))
|
print(json.dumps({"error": f"An error occurred: {str(e)}"}, indent=4))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
print(json.dumps({"error": "Usage: python testsr.py <markdown_filename>"}))
|
print(json.dumps({"error": "Usage: python testsr.py <markdown_filename>"}, indent=4))
|
||||||
else:
|
else:
|
||||||
process_markdown(sys.argv[1])
|
process_markdown(sys.argv[1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue