mirror of
https://github.com/xcat2/confluent.git
synced 2026-04-27 19:07:46 +00:00
Fix startswith parameter
Needed to be bytes for subprocess
This commit is contained in:
@@ -85,7 +85,7 @@ def handle_request(env, start_response):
|
||||
['localectl', 'status']).split(b'\n')
|
||||
for line in langinfo:
|
||||
line = line.strip()
|
||||
if line.startswith('System Locale:'):
|
||||
if line.startswith(b'System Locale:'):
|
||||
currlocale = line.split('=')[-1]
|
||||
if not currlocale:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user