/
usr
/
lib64
/
python2.6
/
site-packages
/
lxml
/
html
/
/usr/lib64/python2.6/site-packages/lxml/html
mkdir
upload
Name
Size
Mode
Actions
builder.py
4310
0644
edit
dl
rm
builder.pyc
3918
0644
edit
dl
rm
builder.pyo
3918
0644
edit
dl
rm
clean.py
25017
0644
edit
dl
rm
clean.pyc
18900
0644
edit
dl
rm
clean.pyo
18799
0644
edit
dl
rm
defs.py
3800
0644
edit
dl
rm
defs.pyc
3578
0644
edit
dl
rm
defs.pyo
3578
0644
edit
dl
rm
diff.py
30375
0644
edit
dl
rm
diff.pyc
28696
0644
edit
dl
rm
diff.pyo
28346
0644
edit
dl
rm
ElementSoup.py
319
0644
edit
dl
rm
ElementSoup.pyc
622
0644
edit
dl
rm
ElementSoup.pyo
622
0644
edit
dl
rm
formfill.py
9761
0644
edit
dl
rm
formfill.pyc
10015
0644
edit
dl
rm
formfill.pyo
9761
0644
edit
dl
rm
html5parser.py
5304
0644
edit
dl
rm
html5parser.pyc
5870
0644
edit
dl
rm
html5parser.pyo
5870
0644
edit
dl
rm
soupparser.py
4275
0644
edit
dl
rm
soupparser.pyc
4831
0644
edit
dl
rm
soupparser.pyo
4831
0644
edit
dl
rm
usedoctest.py
249
0644
edit
dl
rm
usedoctest.pyc
464
0644
edit
dl
rm
usedoctest.pyo
464
0644
edit
dl
rm
_dictmixin.py
3539
0644
edit
dl
rm
_dictmixin.pyc
4688
0644
edit
dl
rm
_dictmixin.pyo
4688
0644
edit
dl
rm
_diffcommand.py
2082
0644
edit
dl
rm
_diffcommand.pyc
2856
0644
edit
dl
rm
_diffcommand.pyo
2856
0644
edit
dl
rm
_html5builder.py
3124
0644
edit
dl
rm
_html5builder.pyc
4498
0644
edit
dl
rm
_html5builder.pyo
4498
0644
edit
dl
rm
_setmixin.py
2488
0644
edit
dl
rm
_setmixin.pyc
5194
0644
edit
dl
rm
_setmixin.pyo
5194
0644
edit
dl
rm
__init__.py
52137
0644
edit
dl
rm
__init__.pyc
56364
0644
edit
dl
rm
__init__.pyo
56110
0644
edit
dl
rm
Edit:
/usr/lib64/python2.6/site-packages/lxml/html/_setmixin.py
(2488B)
class SetMixin(object): """ Mix-in for sets. You must define __iter__, add, remove """ def __len__(self): length = 0 for item in self: length += 1 return length def __contains__(self, item): for has_item in self: if item == has_item: return True return False def issubset(self, other): for item in other: if item not in self: return False return True __le__ = issubset def issuperset(self, other): for item in self: if item not in other: return False return True __ge__ = issuperset def union(self, other): return self | other def __or__(self, other): new = self.copy() new |= other return new def intersection(self, other): return self & other def __and__(self, other): new = self.copy() new &= other return new def difference(self, other): return self - other def __sub__(self, other): new = self.copy() new -= other return new def symmetric_difference(self, other): return self ^ other def __xor__(self, other): new = self.copy() new ^= other return new def copy(self): return set(self) def update(self, other): for item in other: self.add(item) def __ior__(self, other): self.update(other) return self def intersection_update(self, other): for item in self: if item not in other: self.remove(item) def __iand__(self, other): self.intersection_update(other) return self def difference_update(self, other): for item in other: if item in self: self.remove(item) def __isub__(self, other): self.difference_update(other) return self def symmetric_difference_update(self, other): for item in other: if item in self: self.remove(item) else: self.add(item) def __ixor__(self, other): self.symmetric_difference_update(other) return self def discard(self, item): try: self.remove(item) except KeyError: pass def clear(self): for item in list(self): self.remove(item)
Save
cmd:
run