diff options
-rwxr-xr-x | bin/pm_test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/pm_test b/bin/pm_test index a5cd024..e8e6263 100755 --- a/bin/pm_test +++ b/bin/pm_test @@ -575,11 +575,11 @@ autologin-user-timeout=0 shutil.copystat(self.config_filename, backup_filename) break - with open(self.config_filename, 'w') as f: - if self.config_filename == '/etc/lightdm/lightdm.conf': - f.write(self.template.format(username=self.user)) - elif self.config_filename == '/etc/gdm3/custom.conf': - self.parser.write(f) + with open(self.config_filename, 'w') as f: + if self.config_filename == '/etc/lightdm/lightdm.conf': + f.write(self.template.format(username=self.user)) + elif self.config_filename == '/etc/gdm3/custom.conf': + self.parser.write(f) def disable(self): """ |