cbvpatterns.py
def patterns(prefix, *args):
    """As patterns() in django."""
    pattern_list = []
    for t in args:
        if isinstance(t, (list, tuple)):
            t = url(prefix=prefix, *t)
        elif isinstance(t, RegexURLPattern):
            t.add_prefix(prefix)
        pattern_list.append(t)
    return pattern_list
def patterns(prefix, *args):
    """As patterns() in django."""
    pattern_list = []
    for t in args:
        if isinstance(t, (list, tuple)):
            t = url(prefix=prefix, *t)
        elif isinstance(t, RegexURLPattern):
            t.add_prefix(prefix)
        pattern_list.append(t)
    return pattern_list
def patterns ( prefix , * args ) : pattern_list = [ ] for t in args : if isinstance ( t , ( list , tuple ) ) : t = url ( prefix = prefix , * t ) elif isinstance ( t , RegexURLPattern ) : t . add_prefix ( prefix ) pattern_list . append ( t ) return pattern_list
As patterns() in django.
As patterns () in django .