mercurial/util.py
changeset 7473 5185a24ce04e
parent 7461 2a67430f92f1
child 7495 90487273f59c
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):