def acc_path(acc, r): if not r.pattern: return acc return join(acc, r.pattern.pattern)
def __radd__(self, o): if o is None: return self return self.__class__(join(o.pattern, self.pattern))
def __radd__(self, o): if o is None: return self return URLPattern(join(o.pattern, self.pattern))