Answer the stability, product-owner and prose reviews
This commit is contained in:
+6
-1
@@ -2,6 +2,7 @@
|
||||
import dataclasses
|
||||
import datetime
|
||||
import json
|
||||
import locale
|
||||
import math
|
||||
import os
|
||||
import subprocess
|
||||
@@ -152,7 +153,11 @@ def main() -> str:
|
||||
except ValueError:
|
||||
raw = None
|
||||
if not isinstance(raw, dict):
|
||||
return f"{RED}warning: statusline.py could not parse its input as a JSON object{RESET}"
|
||||
return f"{RED}warning: statusline.py's input is not a JSON object{RESET}"
|
||||
try:
|
||||
locale.setlocale(locale.LC_TIME, "")
|
||||
except locale.Error:
|
||||
pass
|
||||
# Zone None: astimezone converts to the machine's own zone, daylight saving included.
|
||||
status = parse(raw, None)
|
||||
return render(status, current_branch(status.directory), os.environ.get("HOME", ""), datetime.datetime.now().astimezone())
|
||||
|
||||
Reference in New Issue
Block a user