[pitivi: 11/94] Remove a FIXME in settings.py because it was just an explanation
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 11/94] Remove a FIXME in settings.py because it was just an explanation
- Date: Sun, 11 Sep 2011 16:13:22 +0000 (UTC)
commit 6a6a5dd940a6197f4f4151e81267c6e0389d57a9
Author: Alex BÄluÈ <alexandru balut gmail com>
Date: Sun Aug 21 18:00:48 2011 +0200
Remove a FIXME in settings.py because it was just an explanation
pitivi/settings.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/settings.py b/pitivi/settings.py
index 889e51c..9c1f40d 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -191,12 +191,11 @@ class GlobalSettings(Signallable):
continue
if key and self._config.has_option(section, key):
if typ == int or typ == long:
- # WARNING/FIXME : This try/except is for a small cockup in previous
- # configurations where we stored a float value... but declared it
- # as an integer.
try:
value = self._config.getint(section, key)
except ValueError:
+ # In previous configurations we incorrectly stored
+ # ints using float values.
value = int(self._config.getfloat(section, key))
elif typ == float:
value = self._config.getfloat(section, key)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]