summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-07-06 03:15:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-06 06:35:11 (GMT)
commit6376cffaebe40947eea9afb4ae6df05a6ac59ae8 (patch)
tree5cd84ee504acc57e84efa77bc325613d6c5c22f9 /contrib
parentf45ed32c4067eb617e670da3a73348bba4841f3f (diff)
downloadgit-6376cffaebe40947eea9afb4ae6df05a6ac59ae8.zip
git-6376cffaebe40947eea9afb4ae6df05a6ac59ae8.tar.gz
git-6376cffaebe40947eea9afb4ae6df05a6ac59ae8.tar.bz2
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>
Diffstat (limited to 'contrib')
-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 f68ef72..25d9941 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)