Changeset 332a9c479693…
Parent 0deeb72fb685…
by
Changes to 2 files · Browse files at 332a9c479693 Showing diff from parent 0deeb72fb685 Diff from another changeset...
@@ -14,10 +14,7 @@ # this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-try:
- from mercurial.error import RepoError
-except ImportError: # old API
- from mercurial.repo import RepoError
+from mercurial.error import RepoError
from PyQt4 import QtCore, QtGui
Qt = QtCore.Qt
|
@@ -36,10 +36,7 @@
from tortoisehg.util import paths
-try:
- from mercurial.error import RepoError
-except ImportError: # old API
- from mercurial.repo import RepoError
+from mercurial.error import RepoError
Qt = QtCore.Qt
bold = QtGui.QFont.Bold
|
Loading...