KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21572/root/usr/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/lib/python2.4/test/test_imageop.pyo
mò
‚=5Dc@sldZdklZlZdkZdkZdkZdd„Zd„Zd„Z	d„Z
eddƒdS(	s„Test script for the imageop module.  This has the side
   effect of partially testing the imgfile module as well.
   Roger E. Masse
(sverbosesunlinkNic	Csßtitdtidƒdtidƒ|o$tdtidƒ\}}}n!t
dtidƒ\}}}to	dGHnti
|d||ddddƒ}
to	d	GHnti|d||ddƒ}to	d
GHnti|d||ƒ}to	dGHnti|||ƒ}	to	dGHnti|	||ƒ}to	d
GHnti|||ƒ}	to	dGHnti|	||ƒ}to	dGHnti|	||dƒ}to	dGHnti|||ddƒ}	to	dGHnti|	||ƒ}to	dGHnti|	||ƒ}to	dGHnti|	||ƒ}to	dGHnti |	||ƒ}to	dGHnti!|||ƒ}	to	dGHnti"|||ƒ}t#dtidƒdS(Nttestrgbtuuettesttrgbtcropiiitscalettovideotrgb2rgb8trgb82rgbtrgb2greytgrey2rgbt	grey2monot	mono2greyiÿtdither2monot
grey2grey4t
grey2grey2tdither2grey2t
grey42greyt
grey22grey($tuutdecodetget_qualified_pathtostextsept
use_rgbimgtgetrgbimagetimagetwidththeighttgetimagetverbosetimageopRtnewimageRt
scaleimageRt
videoimageRt	greyimageRR	R
Rt	monoimageRR
Rt
grey4imageRt
grey2imageRRRtunlink(RR$RRR%R&RR"R!R#R ((t'/usr/lib/python2.4/test/test_imageop.pytmainsd,$ 	$														cCs”dk}y|i|ƒ}Wn1|ij
o"t|ƒ}|i|ƒ}nXtod|t|ƒfGHn|i|ƒ}||d|dfS(sfreturn a tuple consisting of image (in 'imgfile' format but
    using rgbimg instead) width and heightNs(rgbimg opening test image: %s, sizes: %sii(
trgbimgtsizeofimagetnametsizesterrorRRtstrt
longimagedataR(R,R-R*R((R(Rws	cCs”dk}y|i|ƒ}Wn1|ij
o"t|ƒ}|i|ƒ}nXtod|t|ƒfGHn|i|ƒ}||d|dfS(sUreturn a tuple consisting of
       image (in 'imgfile' format) width and height
    Ns)imgfile opening test image: %s, sizes: %sii(
timgfiletgetsizesR,R-R.RRR/treadR(R,R-RR1((R(Rˆs	cCs“dk}dk}|i}y|iitƒg|}Wntj
onXx>|D]6}|ii||ƒ}|ii
|ƒo|SqUqUW|S(s% return a more qualified path to nameN(tsysRtpathtdirnamet__file__t	NameErrortdirtjoinR,tfullnametexists(R,R4R5R;RR9((R(Ršs			R(t__doc__ttest.test_supportRR'RRRR)RRR(	RR)RRRRR'RR((R(t?sk			

Anon7 - 2021