equal
deleted
inserted
replaced
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): |