Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/lxml/html
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
lxml
/
html
/
📁
..
📄
ElementSoup.py
(319 B)
📄
ElementSoup.pyc
(648 B)
📄
ElementSoup.pyo
(648 B)
📄
__init__.py
(57.73 KB)
📄
__init__.pyc
(61.3 KB)
📄
__init__.pyo
(61.05 KB)
📄
_diffcommand.py
(2.04 KB)
📄
_diffcommand.pyc
(2.85 KB)
📄
_diffcommand.pyo
(2.85 KB)
📄
_html5builder.py
(3.17 KB)
📄
_html5builder.pyc
(4.68 KB)
📄
_html5builder.pyo
(4.68 KB)
📄
_setmixin.py
(2.43 KB)
📄
_setmixin.pyc
(5.39 KB)
📄
_setmixin.pyo
(5.39 KB)
📄
builder.py
(4.21 KB)
📄
builder.pyc
(3.86 KB)
📄
builder.pyo
(3.86 KB)
📄
clean.py
(25.25 KB)
📄
clean.pyc
(19.27 KB)
📄
clean.pyo
(19.17 KB)
📄
defs.py
(4.15 KB)
📄
defs.pyc
(3.93 KB)
📄
defs.pyo
(3.93 KB)
📄
diff.py
(29.79 KB)
📄
diff.pyc
(28.94 KB)
📄
diff.pyo
(28.6 KB)
📄
formfill.py
(9.49 KB)
📄
formfill.pyc
(9.99 KB)
📄
formfill.pyo
(9.74 KB)
📄
html5parser.py
(6.09 KB)
📄
html5parser.pyc
(6.71 KB)
📄
html5parser.pyo
(6.71 KB)
📄
soupparser.py
(4.26 KB)
📄
soupparser.pyc
(4.92 KB)
📄
soupparser.pyo
(4.92 KB)
📄
usedoctest.py
(249 B)
📄
usedoctest.pyc
(477 B)
📄
usedoctest.pyo
(477 B)
Editing: _setmixin.py
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)
Upload File
Create Folder