aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-07-06 05:15:17 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-05 23:35:11 -0700
commit6376cffaebe40947eea9afb4ae6df05a6ac59ae8 (patch)
tree5cd84ee504acc57e84efa77bc325613d6c5c22f9
parentf45ed32c4067eb617e670da3a73348bba4841f3f (diff)
downloadgit-6376cffaebe40947eea9afb4ae6df05a6ac59ae8.tar.gz
git-6376cffaebe40947eea9afb4ae6df05a6ac59ae8.tar.xz
hg-to-git: avoid raising a string exception
This fixes the following warning: hg-to-git.py:92: DeprecationWarning: raising a string exception is deprecated Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xcontrib/hg-to-git/hg-to-git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py
index f68ef725d..25d99411c 100755
--- a/contrib/hg-to-git/hg-to-git.py
+++ b/contrib/hg-to-git/hg-to-git.py
@@ -89,7 +89,7 @@ try:
if o in ('-v', '--verbose'):
verbose = True
if len(args) != 1:
- raise('params')
+ raise Exception('params')
except:
usage()
sys.exit(1)