HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/alt/python38/lib64/python3.8/site-packages/maxminddb/__pycache__/__init__.cpython-38.pyc
U

�Ʊ^ �@s�ddlZddlZzddlZWnek
r6de_YnXddlmZmZm	Z	m
Z
mZmZddl
mZefdd�Zdd�ZdZd	Zd
ZdZdZdS)
�N)�	MODE_AUTO�	MODE_MMAP�
MODE_MMAP_EXT�	MODE_FILE�MODE_MEMORY�MODE_FD)�InvalidDatabaseErrorcCsptjottjd�}|tkr|s&|tkr>|s2td��tj�|�S|tttt	t
fkr^tj�||�Std�|���dS)aOpen a Maxmind DB database

    Arguments:
        database -- A path to a valid MaxMind DB file such as a GeoIP2 database
                    file, or a file descriptor in the case of MODE_FD.
        mode -- mode to open the database with. Valid mode are:
            * MODE_MMAP_EXT - use the C extension with memory map.
            * MODE_MMAP - read from memory map. Pure Python.
            * MODE_FILE - read database as standard file. Pure Python.
            * MODE_MEMORY - load database into memory. Pure Python.
            * MODE_FD - the param passed via database is a file descriptor, not
                        a path. This mode implies MODE_MEMORY.
            * MODE_AUTO - tries MODE_MMAP_EXT, MODE_MMAP, MODE_FILE in that
                          order. Default mode.
    �ReaderzEMODE_MMAP_EXT requires the maxminddb.extension module to be availablezUnsupported open mode: {0}N)
�	maxminddb�	extension�hasattrrr�
ValueErrorr	rrrr�reader�format)�database�modeZ
has_extension�r�E/opt/alt/python38/lib64/python3.8/site-packages/maxminddb/__init__.py�
open_databases�rcCst|�S)zBThis exists for backwards compatibility. Use open_database instead)r)rrrrr	2sr	r
z1.5.4zGregory OschwaldzApache License, Version 2.0z!Copyright 2013-2019 Maxmind, Inc.)�osZmaxminddb.readerr
Zmaxminddb.extension�ImportErrorrZmaxminddb.constrrrrrrZmaxminddb.decoderrrr	�	__title__�__version__�
__author__�__license__�
__copyright__rrrr�<module>s