Hackfut Security File Manager
Current Path:
/usr/lib64/python2.6/site-packages/lxml/html
usr
/
lib64
/
python2.6
/
site-packages
/
lxml
/
html
/
📁
..
📄
ElementSoup.py
(319 B)
📄
ElementSoup.pyc
(622 B)
📄
ElementSoup.pyo
(622 B)
📄
__init__.py
(50.92 KB)
📄
__init__.pyc
(55.04 KB)
📄
__init__.pyo
(54.79 KB)
📄
_dictmixin.py
(3.46 KB)
📄
_dictmixin.pyc
(4.58 KB)
📄
_dictmixin.pyo
(4.58 KB)
📄
_diffcommand.py
(2.03 KB)
📄
_diffcommand.pyc
(2.79 KB)
📄
_diffcommand.pyo
(2.79 KB)
📄
_html5builder.py
(3.05 KB)
📄
_html5builder.pyc
(4.39 KB)
📄
_html5builder.pyo
(4.39 KB)
📄
_setmixin.py
(2.43 KB)
📄
_setmixin.pyc
(5.07 KB)
📄
_setmixin.pyo
(5.07 KB)
📄
builder.py
(4.21 KB)
📄
builder.pyc
(3.83 KB)
📄
builder.pyo
(3.83 KB)
📄
clean.py
(24.43 KB)
📄
clean.pyc
(18.46 KB)
📄
clean.pyo
(18.36 KB)
📄
defs.py
(3.71 KB)
📄
defs.pyc
(3.49 KB)
📄
defs.pyo
(3.49 KB)
📄
diff.py
(29.66 KB)
📄
diff.pyc
(28.02 KB)
📄
diff.pyo
(27.68 KB)
📄
formfill.py
(9.53 KB)
📄
formfill.pyc
(9.78 KB)
📄
formfill.pyo
(9.53 KB)
📄
html5parser.py
(5.18 KB)
📄
html5parser.pyc
(5.73 KB)
📄
html5parser.pyo
(5.73 KB)
📄
soupparser.py
(4.17 KB)
📄
soupparser.pyc
(4.72 KB)
📄
soupparser.pyo
(4.72 KB)
📄
usedoctest.py
(249 B)
📄
usedoctest.pyc
(464 B)
📄
usedoctest.pyo
(464 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