o _@s(ddlmZmZmZddZddZdS)) GEOSGeometry hex_regex wkt_regexcCst|trt|d }|}Wdn1swYn|}t|trGz|}Wn ty7Ynwt|sBt |rFt |Snt |St t |S)zf Given a string file name, returns a GEOSGeometry. The file may contain WKB, WKT, or HEX. rbN) isinstancestropenreadbytesdecodeUnicodeDecodeErrorrmatchrr memoryview)file_hbufdecodedrA/usr/lib/python3/dist-packages/django/contrib/gis/geos/factory.pyfromfiles"       rcKst|fi|S)z3Given a string value, return a GEOSGeometry object.)r)stringkwargsrrrfromstrsrN) django.contrib.gis.geos.geometryrrrrrrrrrs