Plugins/VcsPlugins/vcsPySvn/SvnInfoDialog.py

branch
Py2 comp.
changeset 3141
72f3bde98c58
parent 3060
5883ce99ee12
child 3145
a9de05d4a22f
equal deleted inserted replaced
3127:e47a9d5954e8 3141:72f3bde98c58
9 """ 9 """
10 10
11 from __future__ import unicode_literals # __IGNORE_WARNING__ 11 from __future__ import unicode_literals # __IGNORE_WARNING__
12 12
13 import os 13 import os
14 import sys
14 15
15 import pysvn 16 import pysvn
16 17
17 from PyQt4.QtCore import QMutexLocker 18 from PyQt4.QtCore import QMutexLocker
18 from PyQt4.QtGui import QDialog, QApplication 19 from PyQt4.QtGui import QDialog, QApplication
63 os.chdir(projectPath) 64 os.chdir(projectPath)
64 try: 65 try:
65 entries = self.client.info2(fn, recurse=False) 66 entries = self.client.info2(fn, recurse=False)
66 infoStr = "<table>" 67 infoStr = "<table>"
67 for path, info in entries: 68 for path, info in entries:
69 if sys.version_info[0] == 2:
70 path = path.decode('utf-8')
68 infoStr += self.trUtf8( 71 infoStr += self.trUtf8(
69 "<tr><td><b>Path (relative to project):</b></td>" 72 "<tr><td><b>Path (relative to project):</b></td>"
70 "<td>{0}</td></tr>").format(path) 73 "<td>{0}</td></tr>").format(path)
71 if info['URL']: 74 if info['URL']:
72 infoStr += self.trUtf8( 75 infoStr += self.trUtf8(

eric ide

mercurial