Replace cuni with str

This commit is contained in:
Nick Hall
2015-03-14 23:48:32 +00:00
parent c9fd339289
commit 5da10c5a80
90 changed files with 433 additions and 532 deletions

View File

@@ -26,7 +26,6 @@ import re
import io
import subprocess
from gramps.gen.constfunc import cuni
from gramps.gen.const import TEMP_DIR
test_ged = """0 HEAD
@@ -126,8 +125,8 @@ class UnicodeTest(unittest.TestCase):
from gramps.gen.config import set as setconfig, get as getconfig
from gramps.gen.dbstate import DbState
self.newpath = os.path.join(os.path.dirname(__file__),
cuni('\u0393\u03c1\u03b1\u03bc\u03c3\u03c0'))
self.newtitle = cuni('Gr\u00e4mps T\u00e9st')
'\u0393\u03c1\u03b1\u03bc\u03c3\u03c0')
self.newtitle = 'Gr\u00e4mps T\u00e9st'
os.makedirs(self.newpath)
self.old_path = getconfig('behavior.database-path')
setconfig('behavior.database-path', self.newpath)