orca r3758 - in branches/gnome-2-22: . src/orca
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3758 - in branches/gnome-2-22: . src/orca
- Date: Wed, 26 Mar 2008 15:04:13 +0000 (GMT)
Author: richb
Date: Wed Mar 26 15:04:13 2008
New Revision: 3758
URL: http://svn.gnome.org/viewvc/orca?rev=3758&view=rev
Log:
* src/orca/app_prefs.py:
src/orca/orca_prefs.py:
Fix for bug #523642 - orca_prefs.py:_writePronunciation should
not generate bad Python syntax.
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/orca/app_prefs.py
branches/gnome-2-22/src/orca/orca_prefs.py
Modified: branches/gnome-2-22/src/orca/app_prefs.py
==============================================================================
--- branches/gnome-2-22/src/orca/app_prefs.py (original)
+++ branches/gnome-2-22/src/orca/app_prefs.py Wed Mar 26 15:04:13 2008
@@ -125,8 +125,8 @@
- value: the replace string to use.
"""
- prefs.writelines(" orca.pronunciation_dict.setPronunciation(\"" + \
- word + "\", \"" + value + "\", pronunciations)\n")
+ prefs.writelines(" orca.pronunciation_dict.setPronunciation(" + \
+ repr(word) + ", " + repr(value) + ", pronunciations)\n")
def _writePronunciationMap(self, prefs, treeModel):
"""Write to configuration file 'prefs' the new application specific
Modified: branches/gnome-2-22/src/orca/orca_prefs.py
==============================================================================
--- branches/gnome-2-22/src/orca/orca_prefs.py (original)
+++ branches/gnome-2-22/src/orca/orca_prefs.py Wed Mar 26 15:04:13 2008
@@ -586,8 +586,8 @@
- value: the replacement string to use.
"""
- prefs.writelines("orca.pronunciation_dict.setPronunciation(\"" + \
- word + "\", \"" + value + "\")\n")
+ prefs.writelines("orca.pronunciation_dict.setPronunciation(" + \
+ repr(word) + ", " + repr(value) + ")\n")
def _iteratePronunciations(self, prefs, treeModel):
"""Iterate over each of the entries in the tree model and write out
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]