Plugins/VcsPlugins/vcsMercurial/HgClient.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2405
d4b5f3bd4720
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing an interface to the Mercurial command server. 7 Module implementing an interface to the Mercurial command server.
8 """ 8 """
9
10 try:
11 str = unicode
12 except (NameError):
13 pass
9 14
10 import struct 15 import struct
11 import io 16 import io
12 17
13 from PyQt4.QtCore import QProcess, QProcessEnvironment, QObject, QByteArray, \ 18 from PyQt4.QtCore import QProcess, QProcessEnvironment, QObject, QByteArray, \
34 39
35 @param repoPath root directory of the repository (string) 40 @param repoPath root directory of the repository (string)
36 @param encoding encoding to be used by the command server (string) 41 @param encoding encoding to be used by the command server (string)
37 @param parent reference to the parent object (QObject) 42 @param parent reference to the parent object (QObject)
38 """ 43 """
39 super().__init__(parent) 44 super(HgClient, self).__init__(parent)
40 45
41 self.__server = None 46 self.__server = None
42 self.__started = False 47 self.__started = False
43 self.__version = None 48 self.__version = None
44 self.__encoding = Preferences.getSystem("IOEncoding") 49 self.__encoding = Preferences.getSystem("IOEncoding")

eric ide

mercurial