bin: run black

This commit is contained in:
Vincent Bernat 2021-12-26 15:31:38 +01:00
parent 45ee293d35
commit bce64c1118
3 changed files with 3 additions and 5 deletions

View file

@ -880,9 +880,7 @@ async def network_manager_notifications(i3, event, path, state, reason):
interface="org.freedesktop.DBus.Properties", interface="org.freedesktop.DBus.Properties",
member="PropertiesChanged", member="PropertiesChanged",
signature="sa{sv}as", signature="sa{sv}as",
onlyif=lambda args: ( onlyif=lambda args: (args[0] == "org.freedesktop.NetworkManager.AccessPoint"),
args[0] == "org.freedesktop.NetworkManager.AccessPoint"
),
), ),
) )
@retry(2) @retry(2)

View file

@ -177,7 +177,7 @@ if __name__ == "__main__":
round(weather["daily"][0]["temp"]["max"]), round(weather["daily"][0]["temp"]["max"]),
), ),
] ]
city = city.replace('%', '%%') city = city.replace("%", "%%")
conditions.insert(0, f"%{{F#888}}%{{Tx}}%{{T-}} {city}%{{F-}}") conditions.insert(0, f"%{{F#888}}%{{Tx}}%{{T-}} {city}%{{F-}}")
output = " ".join(conditions).replace("%{Tx}", "%%{T%d}" % options.font_index) output = " ".join(conditions).replace("%{Tx}", "%%{T%d}" % options.font_index)
logger.debug("output: %s", output) logger.debug("output: %s", output)