Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

reporegistry: fix exception of non-ascii profile path (fixes #92)

It doesn't use hglib.fromunicode() but returns unicode object, because
settingsfilename() is passed to QFile.

Changeset 90dffcb22fde

Parent 0fc71b3f4982

by Yuya Nishihara

Changes to one file · Browse files at 90dffcb22fde Showing diff from parent 0fc71b3f4982 Diff from another changeset...

 
23
24
25
 
26
27
 
28
29
30
 
23
24
25
26
27
 
28
29
30
31
@@ -23,8 +23,9 @@
     def settingsfilename(): + """Return path to thg-reporegistry.xml as unicode"""   s = QSettings() - dir = os.path.dirname(str(s.fileName())) + dir = os.path.dirname(unicode(s.fileName()))   return dir + '/' + 'thg-reporegistry.xml'