From 92d3f5fe854205a776c3fa39b74dc583d0bfa8c9 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 27 May 2016 18:18:10 +0200 Subject: [PATCH] Only strip from the left. --- src/modules/localecfg/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/localecfg/main.py b/src/modules/localecfg/main.py index f1047fb68..b1a0efc77 100644 --- a/src/modules/localecfg/main.py +++ b/src/modules/localecfg/main.py @@ -52,11 +52,11 @@ def run(): for line in text: if us in line and line[0] == "#": # uncomment line - line = line[1:].strip() + line = line[1:].lstrip() if locale in line and line[0] == "#": # uncomment line - line = line[1:].strip() + line = line[1:].lstrip() gen.write(line)