σ <Χο[c@s ddlmZmZddlmZd ad„Zd„Zdej fd„ƒYZ d„Z ej e j e eƒeje j e ƒeje j dƒd S( i(tImaget ImageFile(ti8cCs |adS(s_ Install application-specific GRIB image handler. :param handler: Handler object. N(t_handler(thandler((s7/tmp/pip-build-SKekGm/pillow/PIL/GribStubImagePlugin.pytregister_handlerscCs'|dd!dko&t|dƒdkS(NiitGRIBii(R(tprefix((s7/tmp/pip-build-SKekGm/pillow/PIL/GribStubImagePlugin.pyt_acceptstGribStubImageFilecBs&eZdZdZd„Zd„ZRS(RcCs~|jjƒ}t|jjdƒƒs6tdƒ‚n|jj|ƒd|_d|_|jƒ}|rz|j |ƒndS(NisNot a GRIB filetFi(ii( tfpttellRtreadt SyntaxErrortseektmodet_sizet_loadtopen(tselftoffsettloader((s7/tmp/pip-build-SKekGm/pillow/PIL/GribStubImagePlugin.pyt_open(s   cCstS(N(R(R((s7/tmp/pip-build-SKekGm/pillow/PIL/GribStubImagePlugin.pyR9s(t__name__t __module__tformattformat_descriptionRR(((s7/tmp/pip-build-SKekGm/pillow/PIL/GribStubImagePlugin.pyR #s cCsBtdkstddƒ r+tdƒ‚ntj|||ƒdS(NRtsavesGRIB save handler not installed(RtNonethasattrtIOErrorR(timR tfilename((s7/tmp/pip-build-SKekGm/pillow/PIL/GribStubImagePlugin.pyt_save=ss.gribN(tRRt_binaryRRRRRt StubImageFileR R"t register_openRt register_savetregister_extension(((s7/tmp/pip-build-SKekGm/pillow/PIL/GribStubImagePlugin.pyt s