diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-07-06 05:15:17 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-05 23:35:11 -0700 |
commit | 6376cffaebe40947eea9afb4ae6df05a6ac59ae8 (patch) | |
tree | 5cd84ee504acc57e84efa77bc325613d6c5c22f9 /contrib | |
parent | INSTALL: Update section about git-frotz form. (diff) | |
download | tgif-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>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/hg-to-git/hg-to-git.py | 2 |
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 f68ef725d4..25d99411ca 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) |