From 3a6daf37f3bd02b40dc413d52025861284536090 Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Tue, 24 Mar 2009 18:59:36 +0000 Subject: Avoid writing a spurious newline in ~/.i18n --- (limited to 'extensions') diff --git a/extensions/cpsection/language/model.py b/extensions/cpsection/language/model.py index e714dad..fe80410 100644 --- a/extensions/cpsection/language/model.py +++ b/extensions/cpsection/language/model.py @@ -74,7 +74,7 @@ def _write_i18n(langs): fd.close() else: fd = open(path, 'w') - fd.write('LANG="%s"\n' % langs[0]) + fd.write('LANG="%s"\n' % langs[0].strip("\n")) fd.write('LANGUAGE="%s"\n' % langstr) fd.close() -- cgit v0.9.1