Merge branch 'patch-1' of https://github.com/LostNulide/Adafruit_Python_Shell into patch-1
This commit is contained in:
commit
0dbb994e53
1 changed files with 1 additions and 1 deletions
|
|
@ -555,7 +555,7 @@ class Shell:
|
||||||
"""Return a string containing the raspbian version"""
|
"""Return a string containing the raspbian version"""
|
||||||
if self.get_os() != "Raspbian":
|
if self.get_os() != "Raspbian":
|
||||||
return None
|
return None
|
||||||
raspbian_releases = ("bullseye", "buster", "stretch", "jessie", "wheezy")
|
raspbian_releases = ("bookworm", "bullseye", "buster", "stretch", "jessie", "wheezy")
|
||||||
if os.path.exists("/etc/os-release"):
|
if os.path.exists("/etc/os-release"):
|
||||||
with open("/etc/os-release", encoding="utf-8") as f:
|
with open("/etc/os-release", encoding="utf-8") as f:
|
||||||
release_file = f.read()
|
release_file = f.read()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue