ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ fPc@sdZddlZddlZddlZddlZddlZddlZyddlmZWn!e k rddlmZnXej e Z dZ ddZdZdd d YZdS( sSimple traceback introspection. Used to add additional information to AssertionErrors in tests, so that failure messages may be more informative. iN(tStringIOcCstjd|x|jr(|j}qW|j}t|\}}t||\}}ttjdj |}t |j |j }x|r:y+x$t j|jD]}||qWWnst jk r5} tjd| |jd|d8}ttjdj |}t |j |j }qnXPqWg} |jr|jjd} d} xL| D]A} | |kr| jd| n| jd| | d7} qiWndj | S( sInspect a traceback and its frame, returning source for the expression where the exception was raised, with simple variable replacement performed and the line on which the exception was raised marked with '>>' sinspect traceback %stsTokenizer error: %siis s>> s (tlogtdebugttb_nextttb_framettbsourcetfind_inspectable_linesRttextwraptdedenttjointExpandertf_localst f_globalsttokenizetgenerate_tokenstreadlinet TokenErrortpoptexpanded_sourcetsplittappend(ttbtframetlinestexc_linet inspect_linest mark_linetsrctexpttoktetpaddedt exp_linesteptline((s?/opt/alt/python27/lib/python2.7/site-packages/nose/inspector.pytinspect_tracebacks<         ic Csc|j}|j}|dkr6|d|d}tjd||ytj|\}}Wn!tk rdgd}}qFX|}t|d}tdt|t ||}||||!}|d|}t j d krF|dkrFx?||dj j dr/|d8}||||!}qWqFndgd}}tjd||||fS( sGet source from a traceback object. A tuple of two things is returned: a list of lines of context from the source code, and the index of the current line within that list. The optional second argument specifies the number of lines of context to return, which are centered around the current line. .. Note :: This is adapted from inspect.py in the python 2.4 standard library, since a bug in the 2.3 version of inspect prevents it from correctly locating source lines in a traceback frame. iiislineno: %s start: %sRis\s'tbsource lines '''%s''' around index %s(ii(t tb_linenoRRRtinspectt findsourcetIOErrortmaxtmintlentsyst version_infotstriptendswith( RtcontexttlinenoRtstartRtdummytindext all_lines((s?/opt/alt/python27/lib/python2.7/site-packages/nose/inspector.pyRAs*    "  c Cstjd}tjd}tjd}g}||}|j|jd}|t|dd|!}|j||dt|dt|!} x>|D]6} |j| jd|kr|j| qPqW|j|j|t|d} |j |} xc| D][} | sG|j| jd|krv|j |  rv|j| |j | } qPqWt j d|| || fS( s'Find lines in home that are inspectable. Walk back from the err line up to 3 lines, but don't walk back over changes in indent level. Walk forward up to 3 lines, counting \ separated lines as 1. Don't walk over changes in indent level (unless part of an extended line) s \\[\s\n]*$s :[\s\n]*$s^(\s*)iiiis#Inspecting lines '''%s''' around %s( tretcompiletmatchtgroupsR)treverseR*R+RtsearchRR( Rtpostcnttdftindt toinspectthomet home_indenttbeforetafterR#thome_post continued((s?/opt/alt/python27/lib/python2.7/site-packages/nose/inspector.pyRms2   $    % R cBs eZdZdZdZRS(sxSimple expression expander. Uses tokenize to find the names and expands any that can be looked up in the frame. cCs(||_||_d|_d|_dS(NR(tlocalstglobalstNonetlposR(tselfRGRH((s?/opt/alt/python27/lib/python2.7/site-packages/nose/inspector.pyt__init__s   cCs|jdk rs|d|jkrC|jd|d|j7_qs|d|jkrs|jd|d7_qsn|d|_|tjkrn|tjkrEy2|j|}t|r|}n t|}Wn]t k r2y2|j |}t|r|}n t|}Wq3t k r.|}q3XnX|j|7_n|j|7_t j d||dr|jd7_ndS(Nit s\s+\\\ns \ ( RJRIRRtINDENTtNAMERGtcallabletreprtKeyErrorRHR6R8(RKtttypeRR2tendR#tval((s?/opt/alt/python27/lib/python2.7/site-packages/nose/inspector.pyt__call__s4 !         (t__name__t __module__t__doc__RLRV(((s?/opt/alt/python27/lib/python2.7/site-packages/nose/inspector.pyR s ((RYR&tloggingR6R,RRt cStringIORt ImportErrort getLoggerRWRR$RRR (((s?/opt/alt/python27/lib/python2.7/site-packages/nose/inspector.pyts        / , (