File: utils.py

package info (click to toggle)
python-lunr 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,644 kB
  • sloc: python: 3,811; javascript: 114; makefile: 60
file content (13 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
def as_string(obj):
    return "" if not obj else str(obj)


class CompleteSet(set):
    def union(self, other):
        return self

    def intersection(self, other):
        return set(other)

    def __contains__(self, y):
        return True