orca r3757 - in trunk: . src/orca
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3757 - in trunk: . src/orca
- Date: Wed, 26 Mar 2008 15:02:04 +0000 (GMT)
Author: richb
Date: Wed Mar 26 15:02:04 2008
New Revision: 3757
URL: http://svn.gnome.org/viewvc/orca?rev=3757&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:
trunk/ChangeLog
trunk/src/orca/app_prefs.py
trunk/src/orca/orca_prefs.py
Modified: trunk/src/orca/app_prefs.py
==============================================================================
--- trunk/src/orca/app_prefs.py (original)
+++ trunk/src/orca/app_prefs.py Wed Mar 26 15:02:04 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: trunk/src/orca/orca_prefs.py
==============================================================================
--- trunk/src/orca/orca_prefs.py (original)
+++ trunk/src/orca/orca_prefs.py Wed Mar 26 15:02:04 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]