From ae0811b4d7aed9dbc72e9f7b441663690cc58693 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Sat, 7 May 2011 14:32:03 +0200 Subject: [PATCH] AutoTimerComponent.py: prevent _encoding from being None set to 'UTF-8' if receiving invalid parameter in setEncoding and _encoding unset. --- autotimer/src/AutoTimerComponent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autotimer/src/AutoTimerComponent.py b/autotimer/src/AutoTimerComponent.py index 2ae26a16..702831d3 100644 --- a/autotimer/src/AutoTimerComponent.py +++ b/autotimer/src/AutoTimerComponent.py @@ -102,6 +102,8 @@ class AutoTimerComponent(object): def setEncoding(self, encoding): if encoding: self._encoding = encoding + elif not self._encoding: + self._encoding = 'UTF-8' encoding = property(lambda self: self._encoding, setEncoding) -- 2.20.1