Skip to content

Commit c2e2549

Browse files
committed
Revert "os.py: Add function to read the VERSION_CODENAME in /etc/os-release."
This reverts commit 1f94a50.
1 parent 3a35853 commit c2e2549

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

xapp/os.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import psutil
55
import subprocess
6-
import csv
76

87
### SESSION DETECTION
98

@@ -126,16 +125,3 @@ def run_with_admin_privs(command, message=None, icon=None, support_pkexec=False)
126125
return True
127126
else:
128127
return False
129-
130-
def get_os_release_codename():
131-
try:
132-
os_release = {}
133-
with open("/etc/os-release") as f:
134-
reader = csv.reader(f, delimiter="=")
135-
os_release = dict(reader)
136-
137-
return os_release["VERSION_CODENAME"]
138-
except Exception as e:
139-
print("Unable to retrieve codename from /etc/os-release: %s" % str(e))
140-
141-
return None

0 commit comments

Comments
 (0)