comparison mercurial/util.py @ 7473:5185a24ce04e

exceptions should inherit the Exception class
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 06 Dec 2008 15:53:57 +0100
parents 2a67430f92f1
children 90487273f59c
comparison
equal deleted inserted replaced
7472:9d457bb38de5 7473:5185a24ce04e
703 else: 703 else:
704 os.environ[k] = v 704 os.environ[k] = v
705 if cwd is not None and oldcwd != cwd: 705 if cwd is not None and oldcwd != cwd:
706 os.chdir(oldcwd) 706 os.chdir(oldcwd)
707 707
708 class SignatureError: 708 class SignatureError(Exception):
709 pass 709 pass
710 710
711 def checksignature(func): 711 def checksignature(func):
712 '''wrap a function with code to check for calling errors''' 712 '''wrap a function with code to check for calling errors'''
713 def check(*args, **kwargs): 713 def check(*args, **kwargs):