[orca/new-settings] Changed the copy of dictionaries from reference to copy



commit cda7cf6678f7a937872b35932f31e78d48ec93eb
Author: Juanje Ojeda <jojeda emergya es>
Date:   Fri Oct 29 19:47:23 2010 +0200

    Changed the copy of dictionaries from reference to copy

 src/orca/backends/yaml_backend.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index fb85ba9..cbde538 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -113,7 +113,7 @@ class Backend:
             override with profile values. """
         self._getSettings()
         generalSettings = self.general.copy()
-        profileSettings = self.profiles[profile]
+        profileSettings = self.profiles[profile].copy()
         for key, value in profileSettings.items():
             if key not in ['pronunciations', 'keybindings']:
                 generalSettings[key] = value
@@ -124,7 +124,7 @@ class Backend:
             override with profile values. """
         self._getSettings()
         pronunciations = self.pronunciations.copy()
-        profileSettings = self.profiles[profile]
+        profileSettings = self.profiles[profile].copy()
         if profileSettings.has_key('pronunciations'):
             pronunciations = profileSettings['pronunciations']
         return pronunciations
@@ -134,7 +134,7 @@ class Backend:
             override with profile values. """
         self._getSettings()
         keybindings = self.keybindings.copy()
-        profileSettings = self.profiles[profile]
+        profileSettings = self.profiles[profile].copy()
         if profileSettings.has_key('keybindings'):
             keybindings = profileSettings['keybindings']
         return keybindings



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]