HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/root/lib/fm-agent/dependencies/linux/python3.9/jpype/__pycache__/_jio.cpython-39.pyc
a

��i5�@s>ddlmZddlZddlmZe�d�Gdd�de��ZdS)�)�_jcustomizer�N)�_jexceptionzjava.lang.AutoCloseablec@s eZdZdZdd�Zdd�ZdS)�_JCloseablea� Customizer for ``java.lang.AutoCloseable`` and ``java.io.Closeable``

    This customizer adds support of the ``with`` operator to all Java
    classes that implement the Java ``AutoCloseable`` interface.

    Example:

    .. code-block:: python

        from java.nio.files import Files, Paths
        with Files.newInputStream(Paths.get("foo")) as fd:
          # operate on the input stream

        # Input stream closes at the end of the block.

    cCs|S)N�)�selfrr�</usr/lib/fm-agent/dependencies/linux/python3.9/jpype/_jio.py�	__enter__-sz_JCloseable.__enter__c
CsPt��}z|��Wn6tjyJ}z|ddur6|�WYd}~n
d}~00dS)Nr)�_sys�exc_info�closer�
JException)rZexception_typeZexception_value�	traceback�infoZjexrrr�__exit__0sz_JCloseable.__exit__N)�__name__�
__module__�__qualname__�__doc__r	rrrrrrsr)�r�sysr
r�JImplementationFor�objectrrrrr�<module>s