From 91e6e1cd67e75882b976ec7ebd0f56521dd3d3b9 Mon Sep 17 00:00:00 2001 From: LostNulide <138865189+LostNulide@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:16:42 +0200 Subject: [PATCH 1/2] Added new raspbian release(bookworm) to raspbian_releases --- adafruit_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_shell.py b/adafruit_shell.py index 23c0f50..cdeb92d 100644 --- a/adafruit_shell.py +++ b/adafruit_shell.py @@ -555,7 +555,7 @@ def get_raspbian_version(self): """Return a string containing the raspbian version""" if self.get_os() != "Raspbian": return None - raspbian_releases = ("bullseye", "buster", "stretch", "jessie", "wheezy") + raspbian_releases = ("bookworm", "bullseye", "buster", "stretch", "jessie", "wheezy") if os.path.exists("/etc/os-release"): with open("/etc/os-release", encoding="utf-8") as f: release_file = f.read() From 85686eede4856b9ea65631372c83bfc9906d5841 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 15 Apr 2024 14:06:44 -0700 Subject: [PATCH 2/2] Run pre-commit --- adafruit_shell.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/adafruit_shell.py b/adafruit_shell.py index cdeb92d..60312f6 100644 --- a/adafruit_shell.py +++ b/adafruit_shell.py @@ -555,7 +555,14 @@ def get_raspbian_version(self): """Return a string containing the raspbian version""" if self.get_os() != "Raspbian": return None - raspbian_releases = ("bookworm", "bullseye", "buster", "stretch", "jessie", "wheezy") + raspbian_releases = ( + "bookworm", + "bullseye", + "buster", + "stretch", + "jessie", + "wheezy", + ) if os.path.exists("/etc/os-release"): with open("/etc/os-release", encoding="utf-8") as f: release_file = f.read()