Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e895b9

Browse files
committed
Bumped version. /proc/config.gz data needs to be decoded.
1 parent 77079e1 commit 2e895b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rtcqs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
user = getpass.getuser()
1111
wiki_url = "https://wiki.linuxaudio.org/wiki/system_configuration"
1212
gui_status = False
13-
version = "0.3.0"
13+
version = "0.3.1"
1414
headline = {}
1515
kernel = {}
1616
output = {}
@@ -178,7 +178,7 @@ def kernel_config_check():
178178
status['kernel_config'] = True
179179
output['kernel_config'] = "Valid kernel configuration found."
180180
with gzip.open('/proc/config.gz', 'r') as f:
181-
kernel['config'] = [l.strip() for l in f.readlines()]
181+
kernel['config'] = [l.strip().decode() for l in f.readlines()]
182182
elif os.path.exists(f'/boot/config-{kernel["release"]}'):
183183
status['kernel_config'] = True
184184
output['kernel_config'] = "Valid kernel configuration found."

0 commit comments

Comments
 (0)