hf ddlZddlmZmZmZmZddlmZmZm Z m Z m Z m Z ddl mZddlmZ ddlmZn #e$rdZYnwxYwgdZefd eeeejefd ed efd Zd ZdZdZdZdZdS)N)IOAnyStrUnioncast) MODE_AUTOMODE_FD MODE_FILE MODE_MEMORY MODE_MMAP MODE_MMAP_EXT)InvalidDatabaseError)Reader) extension) rrr r r r r r open_databasedatabasemodereturnct|tttttt fvrt d|tottd}|tkr|n |t k}|st||S|st dtttj ||S)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. zUnsupported open mode: rzEMODE_MMAP_EXT requires the maxminddb.extension module to be available) rr r r r r ValueError _extensionhasattrrr)rr has_extension use_extensions r/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/maxminddb/__init__.pyrr$s&  9499:::@7:x#@#@M%)Y%6%6MMDMr.s_ *************))))))))))))JJJ   ,;,;FCb01,; ,; ,;,;,;,;^    + 3 s 5??