File: runtime.py

package info (click to toggle)
python-wsme 0.12.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 616 kB
  • sloc: python: 6,064; makefile: 27; javascript: 8
file content (9 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
from wsme.exc import MissingArgument


def check_arguments(funcdef, args, kw):
    """Check if some arguments are missing"""
    assert len(args) == 0
    for arg in funcdef.arguments:
        if arg.mandatory and arg.name not in kw:
            raise MissingArgument(arg.name)