PATH: //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📄 __init__.pyc
↓
X
📄 appdirs.py
↓
X
📄 appdirs.pyc
↓
X
📄 compat.py
↓
X
📄 compat.pyc
↓
X
📄 compatibility_tags.py
↓
X
📄 compatibility_tags.pyc
↓
X
📄 datetime.py
↓
X
📄 datetime.pyc
↓
X
📄 deprecation.py
↓
X
📄 deprecation.pyc
↓
X
📄 direct_url_helpers.py
↓
X
📄 direct_url_helpers.pyc
↓
X
📄 distutils_args.py
↓
X
📄 distutils_args.pyc
↓
X
📄 encoding.py
↓
X
📄 encoding.pyc
↓
X
📄 entrypoints.py
↓
X
📄 entrypoints.pyc
↓
X
📄 filesystem.py
↓
X
📄 filesystem.pyc
↓
X
📄 filetypes.py
↓
X
📄 filetypes.pyc
↓
X
📄 glibc.py
↓
X
📄 glibc.pyc
↓
X
📄 hashes.py
↓
X
📄 hashes.pyc
↓
X
📄 inject_securetransport.py
↓
X
📄 inject_securetransport.pyc
↓
X
📄 logging.py
↓
X
📄 logging.pyc
↓
X
📄 misc.py
↓
X
📄 misc.pyc
↓
X
📄 models.py
↓
X
📄 models.pyc
↓
X
📄 packaging.py
↓
X
📄 packaging.pyc
↓
X
📄 parallel.py
↓
X
📄 parallel.pyc
↓
X
📄 pkg_resources.py
↓
X
📄 pkg_resources.pyc
↓
X
📄 setuptools_build.py
↓
X
📄 setuptools_build.pyc
↓
X
📄 subprocess.py
↓
X
📄 subprocess.pyc
↓
X
📄 temp_dir.py
↓
X
📄 temp_dir.pyc
↓
X
📄 typing.py
↓
X
📄 typing.pyc
↓
X
📄 unpacking.py
↓
X
📄 unpacking.pyc
↓
X
📄 urls.py
↓
X
📄 urls.pyc
↓
X
📄 virtualenv.py
↓
X
📄 virtualenv.pyc
↓
X
📄 wheel.py
↓
X
📄 wheel.pyc
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: models.py
"""Utilities for defining models """ # The following comment should be removed at some point in the future. # mypy: disallow-untyped-defs=False import operator class KeyBasedCompareMixin(object): """Provides comparison capabilities that is based on a key """ __slots__ = ['_compare_key', '_defining_class'] def __init__(self, key, defining_class): self._compare_key = key self._defining_class = defining_class def __hash__(self): return hash(self._compare_key) def __lt__(self, other): return self._compare(other, operator.__lt__) def __le__(self, other): return self._compare(other, operator.__le__) def __gt__(self, other): return self._compare(other, operator.__gt__) def __ge__(self, other): return self._compare(other, operator.__ge__) def __eq__(self, other): return self._compare(other, operator.__eq__) def __ne__(self, other): return self._compare(other, operator.__ne__) def _compare(self, other, method): if not isinstance(other, self._defining_class): return NotImplemented return method(self._compare_key, other._compare_key)
SIMPAN PERUBAHAN