ppp_spell_checker.app()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
cc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
"""A spell checker for the PPP. Use the Aspell API."""
2
3 1
from ppp_libmodule import HttpRequestHandler
4 1
from .requesthandler import RequestHandler, StringCorrector, Word
5
6 1
def app(environ, start_response):
7
    """Function called by the WSGI server."""
8 1
    return HttpRequestHandler(environ, start_response, RequestHandler) \
9
            .dispatch()
10
11
__all__ = ['StringCorrector','Word']
12