Your IP : 216.73.216.134


Current Path : /opt/rh/rh-python35/root/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/rh/rh-python35/root/lib64/python3.5/__pycache__/pdb.cpython-35.opt-2.pyc



���\O��"@s�ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZGdd�de
�Zdddddd	d
ddg	Zd
d�Zdd�Zdd�ZGdd�de�ZdZGdd�dejej�Zedk	r�ddddddddddd d!d"d#d$d%d&d'dd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6g"Zx2eD]*Zeeed7e�jj�d87Zq�Weejj7Z[[ddd9d�Zddd:d�Z d;d�Z!d<d	�Z"d=d
�Z#dd>d�Z$d?d�Z%d@Z&dAdB�Z'dCd�Z(dDZ)dEdF�Z*e+dGkr�ddl,Z,e,j*�dS)H�Nc@seZdZdS)�RestartN)�__name__�
__module__�__qualname__�rr�3/opt/rh/rh-python35/root/usr/lib64/python3.5/pdb.pyrTsr�run�pm�Pdb�runeval�runctx�runcall�	set_trace�post_mortem�helpcCs�tjdtj|��}yt|�}Wntk
rDdSYnX|�Dx<t|dd�D](\}}|j|�r_|||fSq_WWdQRXdS)Nzdef\s+%s\s*[(]�start�)�re�compile�escape�open�OSError�	enumerate�match)�funcname�filenameZcre�fp�lineno�linerrr�
find_function[s
	rcCsztj|�\}}tj|�r@|j|jkr@|dfStj|�rY|dfStj||d��|dfS)Nr)�inspectZ
findsourceZisframe�	f_globals�f_localsZismoduleZgetblock)�obj�linesrrrr�getsourcelineshs!

r%cCsJttj|��}|j�x$|D]\}}||kr&|Sq&WdS)Nr)�list�disZfindlinestarts�reverse)�codeZlastiZ
linestarts�irrrr�lasti2linenoqs
r+c@seZdZdd�ZdS)�_rstrcCs|S)Nr)�selfrrr�__repr__|sz_rstr.__repr__N)rrrr.rrrrr,zsr,z
-> c@s�eZdZddddddd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�ZeZd6d7d8�Zd9d:�ZeZeZ eZ!d;d<�Z"eZ#d=d>�Z$d?d@�Z%dAdB�Z&eZ'dCdD�Z(eZ)dEdF�Z*eZ+dGdH�Z,eZ-dIdJ�Z.e.Z/eZ0eZ1dKdL�Z2e2Z3e2Z4dMdN�Z5dOdP�Z6e6Z7dQdR�Z8e8Z9dSdT�Z:e:Z;dUdV�Z<e<Z=dWdX�Z>e>Z?dYdZ�Z@e@ZAd[d\�ZBeBZCd]d^�ZDeDZEZFd_d`�ZGeGZHdadb�ZIeZJdcdd�ZKeKZLeKZMdedf�ZNdgdh�ZOeOZPdidj�ZQeQZRdkdl�ZSddmdn�ZTdodp�ZUdqdr�ZVeZWeZXeZYdsdt�ZZeZZ[dudv�Z\e\Z]dwdx�Z^eZ_fddydz�Z`d{d|�ZaeZbd}d~�ZceZddd��Zed�d��Zfd�d��Zgd�d��Zhd�d��Zid�d��Zjd�d�d�d�d�d�gZkd�d��Zlemd�d��Znd�d��ZoeoZpd�d��Zqd�d��Zrd�d��Zsd�d��ZtdS)�r
ZtabNFc	$Cs�tjj|d|�tjj||||�|r>d|_d|_i|_i|_d|_	d|_
i|_yddl}|j
d�Wntk
r�YnXd|_||_g|_dtjkr+tjd}y9ttjj|d���}|jj|�WdQRXWntk
r*YnXy*td��}|jj|�WdQRXWntk
riYnXi|_i|_i|_d|_d|_dS)	N�skiprz(Pdb) �Fz 	
`@#$%^&*()=+[{]}\|;:'",<>?�HOMEz.pdbrc)�bdb�Bdb�__init__�cmd�CmdZuse_rawinput�prompt�aliases�
displaying�
mainpyfile�_wait_for_mainpyfile�	tb_lineno�readlineZset_completer_delims�ImportError�allow_kbdint�nosigint�rcLines�os�environr�path�join�extendr�commands�commands_doprompt�commands_silent�commands_defining�
commands_bnum)	r-�completekey�stdin�stdoutr/r@r=ZenvHomeZrcFilerrrr4�sF							
			


				zPdb.__init__cCsM|jrt�|jd�|j�|j|�tjtj|j�dS)Nz-
Program interrupted. (Use 'cont' to resume).)r?�KeyboardInterrupt�message�set_stepr�signal�SIGINT�_previous_sigint_handler)r-Zsignum�framerrr�sigint_handler�s	


zPdb.sigint_handlercCstjj|�|j�dS)N)r2r3�reset�forget)r-rrrrW�sz	Pdb.resetcCs5d|_g|_d|_d|_|jj�dS)Nr)r�stack�curindex�curframer<�clear)r-rrrrX�s
				z
Pdb.forgetcCs�|j�|j||�\|_|_x;|ret|jj|j�}||j|j<|j	}q+W|j|jd|_
|j
j|_|j
�S)Nr)rXZ	get_stackrYrZr+�tb_frame�f_code�tb_lastir<�tb_nextr[r"�curframe_locals�execRcLines)r-�f�tbrrrr�setup�s
	
z	Pdb.setupcCs�|js
dS|j}|j�g|_xZ|r�|j�j�}|r,|ddkr,|j|�r,|jt|�7_dSq,WdS)Nr�#T)rAr(�pop�strip�onecmd�reversed)r-rArrrrrb�s		
		zPdb.execRcLinescCs=|jr
dS|j|�r9|jd�|j|d�dS)Nz--Call--)r;Z	stop_hererP�interaction)r-rUZ
argument_listrrr�	user_call�s
	
z
Pdb.user_callcCsf|jrC|j|j|jj�ks6|jdkr:dSd|_|j|�rb|j|d�dS)NrF)r;r:�canonicr^�co_filename�f_lineno�bp_commandsrk)r-rUrrr�	user_line�s		z
Pdb.user_linecCs�t|dd�r�|j|jkr�|j}d|_|j}|j|d�x"|j|D]}|j|�q]W||_|j|s�|j|j|j	�|j
|r�|j�|j�dSdS)N�	currentbpFrr)
�getattrrrrG�lastcmdrerirI�print_stack_entryrYrZrH�_cmdlooprX)r-rUrrZlastcmd_backrrrrrps 				



zPdb.bp_commandscCs;|jr
dS||jd<|jd�|j|d�dS)N�
__return__z
--Return--)r;r"rPrk)r-rUZreturn_valuerrr�user_returns
	

zPdb.user_returncCs�|jr
dS|\}}}||f|jd<|rH|tkrHdnd}|jd|tj||�dj�f�|j||�dS)NZ
__exception__z	Internal r0z%s%sr���)r;r"�
StopIterationrP�	traceback�format_exception_onlyrhrk)r-rU�exc_info�exc_type�	exc_value�
exc_traceback�prefixrrr�user_exception%s	!zPdb.user_exceptioncCsNxGy!d|_|j�d|_PWqtk
rE|jd�YqXqWdS)NTFz--KeyboardInterrupt--)r?�cmdlooprOrP)r-rrrrv9s	
	
zPdb._cmdloopcCs�|jj|j�}|r�xe|j�D]W\}}|j|�}||k	r(||kr(|||<|jd|||f�q(WdS)Nzdisplay %s: %r  [old: %r])r9�getr[�items�_getval_exceptrP)r-r9�exprZoldvalueZnewvaluerrr�preloopFs
	zPdb.preloopcCsO|j||�r |j�dS|j|j|j�|j�|j�dS)N)rerXrurYrZrv)r-rUr{rrrrkSs

zPdb.interactioncCs#|dk	r|jt|��dS)N)rP�repr)r-r#rrr�displayhook]szPdb.displayhookc	Cs|dd�dkr&|dd�}|j}|jj}y�t|ddd�}tj}tj}tj}z8|jt_|jt_|jt_t|||�Wd|t_|t_|t_XWn>tj	�dd�}|j
tj|�dj
��YnXdS)Nr�!�
z<stdin>Zsingle�ry)rar[r!r�sysrNrMr��execr}�errorr{r|rh)	r-r�locals�globalsr)Zsave_stdoutZ
save_stdinZsave_displayhookr}rrr�defaultes(						zPdb.defaultcCs.|j�s|S|j�}x�|d|jkr�|j|d}d}x>|dd�D],}|jdt|�|�}|d7}qZW|jddj|dd���}|j�}qW|ddkr*|jd�}|dkr*||dd�j�}|jj	|�|d|�j
�}|S)	Nrr�%z%*� �aliasz;;r�)rh�splitr8�replace�strrE�find�lstrip�cmdqueue�append�rstrip)r-r�argsZiiZtmpArgZmarker�nextrrr�precmd{s&	%z
Pdb.precmdcCs-|jstjj||�S|j|�SdS)N)rJr5r6ri�handle_command_def)r-rrrrri�s	z
Pdb.onecmdcCs�|j|�\}}}|s"dS|dkrBd|j|j<dS|dkr[g|_dS|j|j}|r�|j|d|�n
|j|�yt|d|�}Wntk
r�|j}YnX|j	|j
kr�d|j|j<g|_dSdS)NZsilentT�endrr��do_F)Z	parselinerIrKr�rGr�rs�AttributeErrorr�r�commands_resumingrH)r-rr5�argZcmdlist�funcrrrr��s,	

	zPdb.handle_command_defcCst|d|j�dS)N�file)�printrN)r-�msgrrrrP�szPdb.messagecCstd|d|j�dS)Nz***r�)r�rN)r-r�rrrr��sz	Pdb.errorcCs�|j�jd�rgSy|j||||�}Wntk
rOg}YnXtj|d�}xl|D]d}tjj|�r�|j|d�qjtjj	|�rj|j
�jd�rj|j|d�qjW|S)	N�:�,�*�/�.py�.pyw)r�r�)r�r�)rh�endswith�_complete_expression�	Exception�globrBrD�isdirr��isfile�lower)r-�textr�begidx�endidxZret�globs�fnrrr�_complete_location�s

'zPdb._complete_locationcs#�fdd�ttjj�D�S)NcsCg|]9\}}|dk	rt|�j��rt|��qS)N)r��
startswith)�.0r*�bp)r�rr�
<listcomp>�s		z*Pdb._complete_bpnumber.<locals>.<listcomp>)rr2�
Breakpoint�
bpbynumber)r-r�rr�r�r)r�r�_complete_bpnumber�szPdb._complete_bpnumbercs|js
gS|jjj�}|j|j�d�kr��jd��y<|�d}x'�dd�D]}t||�}qlWWnttfk
r�gSYnXdj	�dd��d���fdd�t
|�D�S�fdd�|j�D�SdS)	N�.rrcs-g|]#}|j�d�r�|�qS)rry)r�)r��n)�dottedr�rrr��s	z,Pdb._complete_expression.<locals>.<listcomp>cs%g|]}|j��r|�qSr)r�)r�r�)r�rrr��s	ryry)r[r!�copy�updaterar�rs�KeyErrorr�rE�dir�keys)r-r�rr�r��nsr#�partr)r�r�r�rr��s		 zPdb._complete_expressioncCsz|sttjj�d}n,yt|�}Wn|jd�dSYnX||_||jkr�|j||j||j	|f}nd}g|j|<d|j|<d|j	|<|j
}d|_
d|_z�y|j�Wnyt
k
r^|r/|d|j|<|d|j|<|d|j	|<n|j|=|j|=|j	|=|jd�YnXWdd|_||_
XdS)	Nrz.Usage: commands [bnum]
        ...
        endTFz(com) rr�z1command definition aborted, old commands restored)�lenr2r�r��intr�rKrGrHrIr7rJr�rO)r-r�ZbnumZold_command_defsZprompt_backrrr�do_commands�s@%
		




			



	zPdb.do_commandsrcCs�|sP|jrL|jd�x-tjjD]}|r)|j|j��q)WdSd}d}d}|jd�}|dkr�||dd�j�}|d|�j�}|j	d�}d}	|dkrk|d|�j�}|j
|�}
|
s|jd|�dS|
}||dd�j�}yt|�}WqPt
k
rg|jd|�dSYqPXn�yt|�}Wn�t
k
rOyt||jj|j�}Wn|}YnXy@t|d�r�|j}|j}|j}	|j}|j}WnM|j|�\}
}}|
s4|jd	|�dS|
}	t|�}YnXYnX|sb|j�}|j||�}|r�|j|||||	�}|r�|j|�n9|j||�d}|jd
|j|j|jf�dS)Nz!Num Type         Disp Enb   Wherer�rrr�z%r not found from sys.pathzBad lineno: %s�__func__zJThe specified object %r is not a function or was not found along sys.path.zBreakpoint %d at %s:%dry) �breaksrPr2r�r�Zbpformatr�r�r��rfind�lookupmoduler�r��
ValueError�evalr[r!ra�hasattrr��__code__�co_name�co_firstlinenorn�lineinfo�defaultFile�	checklineZ	set_break�
get_breaks�numberr�r)r-r�Z	temporaryr�rr�condZcommaZcolonrrcr�r)�ok�lnr�errrrr�do_breakNs~	


					
		zPdb.do_breakcCs1|jjj}|dkr-|jr-|j}|S)Nz<string>)r[r^rnr:)r-rrrrr��s	zPdb.defaultFilecCs|j|d�dS)Nr)r�)r-r�rrr�	do_tbreak�sz
Pdb.do_tbreakc
Csd}|jd�}t|�dkr:|dj�}n)t|�dkr_|dj�}n|S|dkrs|S|jd�}|ddkr�|d=t|�dkr�|S|j�}t|�dkr�|d}n)|j|d�}|r�|}|d}t||�}	|	p|S)	N�'rr�r0r�r-)NNN)r�r�rhr�r�r)
r-Z
identifierZfailedZidstring�id�partsZfname�itemrcZanswerrrrr��s.

zPdb.lineinfocCs�t|d�r|jjnd}tj|||�}|sM|jd�dS|j�}|s�|ddks�|dd�dks�|dd�dkr�|jd�dS|S)	Nr[zEnd of filerrfr�z"""z'''zBlank or comment)r�r[r!�	linecache�getlinerPrhr�)r-rrr�rrrrr��s!
,
z
Pdb.checklinecCs�|j�}xq|D]i}y|j|�}Wn2tk
r`}z|j|�WYdd}~XqX|j�|jd|�qWdS)Nz
Enabled %s)r��get_bpbynumberr�r��enablerP)r-r�r�r*r�r�rrr�	do_enable�s
 
z
Pdb.do_enablecCs�|j�}xq|D]i}y|j|�}Wn2tk
r`}z|j|�WYdd}~XqX|j�|jd|�qWdS)NzDisabled %s)r�r�r�r��disablerP)r-r�r�r*r�r�rrr�
do_disables
 
zPdb.do_disablecCs�|jdd�}y|d}Wntk
r:d}YnXy|j|dj��}WnPtk
ry|jd�Ynltk
r�}z|j|�WYdd}~Xn;X||_|s�|jd|j�n|jd|j�dS)Nr�rrzBreakpoint number expectedz#Breakpoint %d is now unconditional.z$New condition set for breakpoint %d.)	r��
IndexErrorr�rhr�r�r�rPr�)r-r�r�r�r�r�rrr�do_conditions

 	zPdb.do_conditioncCs|j�}yt|dj��}Wnd}YnXy|j|dj��}WnPtk
ru|jd�Yn�tk
r�}z|j|�WYdd}~XnfX||_|dkr�|dkr�d|}nd}|jd||j	f�n|jd|j	�dS)NrrzBreakpoint number expectedz%d crossingsz
1 crossingz%Will ignore next %s of breakpoint %d.z-Will stop next time breakpoint %d is reached.)
r�r�rhr�r�r�r��ignorerPr�)r-r�r��countr�r�Zcountstrrrr�	do_ignore6s(	
 	
		z
Pdb.do_ignorec
!Cs�|s�ytd�}Wntk
r0d}YnX|j�j�}|dkr�dd�tjjD�}|j�x|D]}|jd|�qyWdSd|krf|j	d�}|d|�}||d	d�}yt
|�}Wntk
rd
|}Yn%X|j||�}|j
||�}|r@|j|�n"x|D]}|jd|�qGWdS|j�}	xt|	D]l}y|j|�}Wn2tk
r�}z|j|�WYdd}~XqyX|j|�|jd|�qyWdS)NzClear all breaks? �no�y�yescSsg|]}|r|�qSrr)r�r�rrrr�gs	z Pdb.do_clear.<locals>.<listcomp>z
Deleted %sr�rzInvalid line number (%s))r�zyes)�input�EOFErrorrhr�r2r�r�Zclear_all_breaksrPr�r�r�r�Zclear_breakr�r�r�Zclear_bpbynumber)
r-r�ZreplyZbplistr�r*rrr�Z
numberlistrrr�do_clearYsF





 
zPdb.do_clearcCs|j�dS)N)�print_stack_trace)r-r�rrr�do_where�szPdb.do_wherecCsS||_|j|jd|_|jj|_|j|j|j�d|_dS)Nr)rZrYr[r"rarur)r-r�rrr�
_select_frame�s
	zPdb._select_framecCs�|jdkr |jd�dSyt|p/d�}Wn'tk
r_|jd|�dSYnX|dkrud}ntd|j|�}|j|�dS)NrzOldest framerzInvalid frame count (%s))rZr�r�r��maxr)r-r�r��newframerrr�do_up�s

		z	Pdb.do_upcCs�|jdt|j�kr-|jd�dSyt|p<d�}Wn'tk
rl|jd|�dSYnX|dkr�t|j�d}n#tt|j�d|j|�}|j|�dS)NrzNewest framezInvalid frame count (%s)r)rZr�rYr�r�r��minr)r-r�r�rrrr�do_down�s

	#zPdb.do_downcCs�|rfyt|�}Wn'tk
r?|jd|�dSYnX||jjkrl|jd�dSnd}|j|j|�dS)NzError in argument: %rz7"until" line number is smaller than current line numberr)r�r�r�r[roZ	set_until)r-r�rrrr�do_until�s
	
zPdb.do_untilcCs|j�dS)Nr)rQ)r-r�rrr�do_step�s
zPdb.do_stepcCs|j|j�dS)Nr)Zset_nextr[)r-r�rrr�do_next�szPdb.do_nextcCsT|rJddl}tjdd�}|j|�t_|tjdd�<t�dS)Nrr)�shlexr��argvr�r)r-r�r
Zargv0rrr�do_run�sz
Pdb.do_runcCs|j|j�dS)Nr)Z
set_returnr[)r-r�rrr�	do_returnsz
Pdb.do_returncCsK|js=ytjtj|j�|_Wntk
r<YnX|j�dS)Nr)r@rRrSrVrTr�Zset_continue)r-r�rrr�do_continue
s	

zPdb.do_continuecCs�|jdt|j�kr-|jd�dSyt|�}Wntk
r^|jd�Yn�XyK||j_|j|jd|f|j|j<|j|j|j�Wn6tk
r�}z|jd|�WYdd}~XnXdS)Nrz)You can only jump within the bottom framez)The 'jump' command requires a line numberrzJump failed: %s)	rZr�rYr�r�r�r[roru)r-r��errr�do_jumps

$zPdb.do_jumpcCs�tjd�|jj}|j}t|j|j|j�}d|j	j
�|_	|jd�tj|j
|||f�|jd�tj|j�|j|_dS)Nz(%s) zENTERING RECURSIVE DEBUGGERzLEAVING RECURSIVE DEBUGGER)r��settracer[r!rar
rLrMrNr7rhrP�call_tracingrZtrace_dispatchrt)r-r�r�r��prrr�do_debug9s
	

zPdb.do_debugcCsd|_|j�dS)NTr)�_user_requested_quit�set_quit)r-r�rrr�do_quitLs	
zPdb.do_quitcCs$|jd�d|_|j�dS)Nr0Tr)rPrr)r-r�rrr�do_EOFWs
	
z
Pdb.do_EOFcCs�|jj}|j}|j}|jd@r5|d}|jd@rL|d}x_t|�D]Q}|j|}||kr�|jd|||f�qY|jd|f�qYWdS)N�r�z%s = %rz%s = *** undefined ***)r[r^ra�co_argcount�co_flags�range�co_varnamesrP)r-r��co�dictr�r*�namerrr�do_args`s		




zPdb.do_argscCs=d|jkr,|jt|jd��n
|jd�dS)NrwzNot yet returned!)rarPr�r�)r-r�rrr�	do_retvalqsz
Pdb.do_retvalc
Cseyt||jj|j�SWnAtj�dd�}|jtj|�dj	���YnXdS)Nr�rry)
r�r[r!rar�r}r�r{r|rh)r-r�r}rrr�_getval{s zPdb._getvalc
Cs�y?|dkr(t||jj|j�St||j|j�SWnEtj�dd�}tj|�dj	�}t
d|�SYnXdS)Nr�rz** raised %s **ry)r�r[r!rar"r�r}r{r|rhr,)r-r�rUr}r�rrrr��szPdb._getval_exceptc
Cs/y |jt|j|���WnYnXdS)N)rPr�r$)r-r�rrr�do_p�s zPdb.do_pc
Cs2y#|jtj|j|���WnYnXdS)N)rP�pprintZpformatr$)r-r�rrr�do_pp�s#z	Pdb.do_ppcCs�d|_d}|r�|dkr�y�d|kr�|jd�\}}t|j��}t|j��}||kr�||}n%t|j��}td|d�}Wqtk
r�|jd|�dSYqXnD|jdks�|dkrtd|jj	d�}n
|jd}|dkr/|d}|jj
j}|j|�}yzt
j||jj�}|j||d|�|||j�t|t|��|_t|�|kr�|jd�Wntk
r�YnXdS)	Nr&r�r�r�zError in argument: %r�
z[EOF])rtr�r�rhrr�r�rr[ror^rn�get_file_breaksr��getlinesr!�_print_linesrr�rPrO)r-r�Zlast�firstr�	breaklistr$rrr�do_list�s>	





zPdb.do_listcCs�|jjj}|j|�}yt|j�\}}Wn6tk
ro}z|j|�dSWYdd}~XnX|j||||j�dS)N)r[r^rnr*r%rr�r,)r-r�rr.r$rr�rrr�do_longlist�s
zPdb.do_longlistcCs�y|j|�}WndSYnXyt|�\}}Wn<ttfk
rv}z|j|�dSWYdd}~XnX|j||�dS)N)r$r%r�	TypeErrorr�r,)r-r�r#r$rr�rrr�	do_source�s	
z
Pdb.do_sourcec
Cs�|r'|j}|jj|d	�}n
d
}}x�t||�D]�\}}t|�jd�}	t|	�dkr~|	d7}	||kr�|	d7}	n
|	d7}	||kr�|	d7}	n||kr�|	d7}	|j|	d|j��qAWdS)Nrr�rr��Bz->z>>�	ryry)	ror<r�rr��rjustr�rPr�)
r-r$rr�rUZcurrent_linenoZ
exc_linenorr�srrrr,�s 	





zPdb._print_linescCs�y|j|�}WndSYnXd}y
|j}Wntk
rIYnX|rh|jd|j�dSy|jj}Wntk
r�YnX|r�|jd|j�dS|jtkr�|jd|j|j	f�dS|jt|��dS)NzFunction %sz	Method %szClass %s.%s)
r$r�r�rPr�r��	__class__�typerr)r-r��valuer)rrr�	do_whatiss.	


z
Pdb.do_whatiscCs�|sP|jd�x||jj|ji�j�D]}|jd|�q2WnB|j|�}||jj|ji�|<|jd||f�dS)NzCurrently displaying:z%s: %rzdisplay %s: %r)rPr9r�r[r�r��
setdefault)r-r�r��valrrr�
do_display.s
%zPdb.do_displaycCsf|rLy|jj|ji�|=Wqbtk
rH|jd|�YqbXn|jj|jd�dS)Nznot displaying %s)r9r�r[r�r�rg)r-r�rrr�do_undisplayAs
zPdb.do_undisplaycs)�fdd�|jj|ji�D�S)Ncs%g|]}|j��r|�qSr)r�)r�r)r�rrr�Qs	z*Pdb.complete_undisplay.<locals>.<listcomp>)r9r�r[)r-r�rr�r�r)r�r�complete_undisplayPszPdb.complete_undisplaycCs9|jjj�}|j|j�tjdd|�dS)Nz
*interactive*Zlocal)r[r!r�r�rar)�interact)r-r�r�rrr�do_interactTszPdb.do_interactcCs�|j�}t|�dkrft|jj��}x,|D]$}|jd||j|f�q:WdS|d|jkr�t|�dkr�|jd|d|j|df�n$dj|dd��|j|d<dS)Nrz%s = %srr�)r�r��sortedr8r�rPrE)r-r�r�r�r�rrr�do_alias^s
"%)zPdb.do_aliascCsG|j�}t|�dkr"dS|d|jkrC|j|d=dS)Nr)r�r�r8)r-r�r�rrr�
do_unalias�s
zPdb.do_unaliascs�fdd�|jD�S)Ncs%g|]}|j��r|�qSr)r�)r��a)r�rrr��s	z(Pdb.complete_unalias.<locals>.<listcomp>)r8)r-r�rr�r�r)r�r�complete_unalias�szPdb.complete_unaliasrrr	r
rrcCs>y%x|jD]}|j|�q
WWntk
r9YnXdS)N)rYrurO)r-�frame_linenorrrr��s

zPdb.print_stack_tracecCsK|\}}||jkr$d}nd}|j||j||��dS)Nz> z  )r[rPZformat_stack_entry)r-rGZ
prompt_prefixrUrr�rrrru�s		zPdb.print_stack_entrycCs�|stjj||�SyJyt|d|�}|�SWn%tk
rat|d|�}YnXWn#tk
r�|jd|�Yn>Xtjjdkr�|jd|�dS|j	|j
j��dS)NZhelp_r�zNo help for %rr�zJNo help for %r; please do not run Python with -OO if you need command help)r5r6�do_helprsr�r�r��flags�optimizerP�__doc__r�)r-r�ZtopicZcommandrrrrH�s

	zPdb.do_helpcCs#|j|jjpdj��dS)Nr0)rP�	help_execrKrh)r-rrrrL�s
z
Pdb.help_execcCst�dS)N)r)r-rrr�help_pdb�szPdb.help_pdbcCs!tjj|�r(tjj|�r(|Stjjtjd|�}tjj|�rr|j|�|jkrr|Stjj|�\}}|dkr�|d}tjj|�r�|SxdtjD]Y}x%tjj	|�r�tj
|�}q�Wtjj||�}tjj|�r�|Sq�WdS)Nrr0z.py)rBrD�isabs�existsrEr�rmr:�splitext�islink�readlink)r-rrc�rootZext�dirname�fullnamerrrr��s"$*
zPdb.lookupmodulec
Cs�ddl}|jj�|jjddd|dti�d|_|j|�|_d|_t	|d�� }d	|j
�|jf}WdQRX|j|�dS)
Nrr�__main__�__file__�__builtins__TF�rbzexec(compile(%r, %r, 'exec')))rV�__dict__r\r�rXr;rmr:rr�readr)r-rrVr�	statementrrr�
_runscript�s

		zPdb._runscript)urrrr4rVrWrXrerbrlrqrprxr�rvr�rkr�r�r�rir�rPr�r�r�r�r�Zcomplete_commandsr�r�Zdo_bZcomplete_breakZ
complete_br�Zcomplete_tbreakr�r�r�Zcomplete_enabler�Zcomplete_disabler�Zcomplete_conditionr�Zcomplete_ignorer�Zdo_clZcomplete_clearZcomplete_clrZdo_wZdo_btrrZdo_urZdo_drZdo_untrZdo_sr	Zdo_nrZ
do_restartr
Zdo_rrZdo_cZdo_contrZdo_jrZcomplete_debugrZdo_qZdo_exitrr"Zdo_ar#Zdo_rvr$r�r%r'Zcomplete_printZ
complete_pZcomplete_ppr/Zdo_lr0Zdo_llr2Zcomplete_sourcer,r:Zcomplete_whatisr=Zcomplete_displayr>r?rArCrDrFr�r��line_prefixrurHZdo_hrLrMr�r]rrrrr
�s�.		



M]!!.
			1!
#	
ZwhereZdownZup�breakZtbreakr\r�r�r�Z	conditionrG�stepr�ZuntilZjump�returnZretval�continuer&Zlonglistr�rZppZwhatis�sourceZdisplayZ	undisplayr@r�Zunalias�debug�quitr�z

cCst�j|||�dS)N)r
r)r\r�r�rrrrscCst�j|||�S)N)r
r)Z
expressionr�r�rrrr scCst|||�dS)N)r)r\r�r�rrrr#scOst�j||�S)N)r
r
)r��kwdsrrrr
'scCst�jtj�j�dS)N)r
rr��	_getframe�f_backrrrrr*scCs[|dkrtj�d}|dkr4td��t�}|j�|jd|�dS)Nr�zAA valid traceback must be passed if no exception is being handled)r�r}r�r
rWrk)�trrrrr/s	
cCsttj�dS)N)rr��last_tracebackrrrrr	=szimport x; x.main()cCstt�dS)N)r�TESTCMDrrrr�testEsrlcCsddl}|jt�dS)Nr)�pydocZpagerrK)rmrrrrIsa�usage: pdb.py [-c command] ... pyfile [arg] ...

Debug the Python program given by pyfile.

Initial commands are read from .pdbrc files in your home directory
and in the current directory, if they exist.  Commands supplied with
-c are executed after commands from .pdbrc files.

To let the script run until an exception occurs, use "-c continue".
To let the script run up to a given line X in the debugged file, use
"-c 'until X'".c	CsNddl}|jtjdd�dddg�\}}|sWtt�tjd�g}xP|D]H\}}|dkr�tt�tj�qd|dkrd|j|�qdW|d}tjj	|�s�td
|d�tjd�|tjdd�<tjj
|�tjd<t�}|jj
|�xy%|j|�|jrKPtd�Wq1tk
r�td
|d�tddj|��Yq1tk
r�tddd�ttj�d�Yq1tk
r�tj�tjd�Yq1tj�td�td�tj�d}|jd|�td|d�Yq1Xq1WdS)Nrrzhc:�--helpz
--command=r��-h�-c�	--commandzError:zdoes not existz*The program finished and will be restartedZ
Restartingzwith arguments:r4r�z/The program exited via sys.exit(). Exit status:r�z2Uncaught exception. Entering post mortem debuggingz1Running 'cont' or 'step' will restart the programz#Post mortem debugger finished. The z will be restarted)rorn)rprq)�getoptr�rr��_usage�exitr�rBrDrOrTr
rArFr]rrrE�
SystemExitr}�SyntaxErrorr{�	print_excrk)	rrZoptsr�rG�optZoptargr:�pdbrirrr�mainZsV.





	
	







rzrV)-rBrr�r5r2r'r)r�r&rRr r{r�r�r�__all__rr%r+r�r,r^r3r6r
rKZ_help_orderZ_commandrsrhrLrrrr
rrr	rkrlrrsrzrryrrrr�<module>Esf
		������
(<

Rosenblum TV: Video training, virtual workshops, classes, tutorials
logologologologo
  • About
  • What We Do
  • Our Clients
  • Case Studies
    • The BBC
    • CBS News
    • New York Times Television
    • Spectrum News
    • The Newark Star-Ledger
    • The United Nations
    • McGraw/Hill
    • Oyster Yachts
    • Scottish Environmental Protection Agency
  • The Power of Storytelling
  • Why iPhones?
  • Michael on Media
  • Books
  • Contact
  • About
  • What We Do
  • Our Clients
  • Case Studies
    • The BBC
    • CBS News
    • New York Times Television
    • Spectrum News
    • The Newark Star-Ledger
    • The United Nations
    • McGraw/Hill
    • Oyster Yachts
    • Scottish Environmental Protection Agency
  • The Power of Storytelling
  • Why iPhones?
  • Michael on Media
  • Books
  • Contact

RE-INVENTING THE TELEVISION NEWS BUSINESS*

A revolution in video storytelling

Creating entirely new & cost-effective production methods

From the world leaders in video production training and the creators of Character Driven Storytelling™

*and every other business that uses video

WHAT WE DO

Over the past 35 years, we have designed, built or restructured some of the most powerful news and journalism companies in the world.

We replace the traditional TV news ‘crew’ with one highly trained journalist, working alone with nothing but an iPhone.

No more TV news ‘crews’, no editors and no field producers.

This is television news done the way newspaper journalism is done – one reporter with their electronic pad and pencil.

In doing this, we can cut the cost of production by as much as 75% while increasing ratings and audience engagement.

In the place of conventional TV news ‘packages’ – ie, reporter stand up, interview, b-roll, man on the street, we marry great journalism with Netflix and Hollywood storytelling.

It’s a combination that works.

We have taken most of our clients to #1 in their respective markets.

And it’s not just for news. Any company, any profit, any NGO and anyone else who is online needs to tell their story in compelling yet cost-effective video. We can teach you to do that. Either in person or virtually.

EXAMPLES OF WHAT WE CAN TEACH YOUR STAFF TO PRODUCE

ITAY HOD

Itay Hod, MMJ with KPIX/CBS in San Francisco, took the 5-Day Intensive Video Storytelling Bootcamp in 2018.

Because he works alone, with only an iPhone, he was able to embed himself with a homeless family.

Here’s the story he produced in a one-day turn.

KIET DO

Kiet Do, an MMJ with KPIX/CBS in San Francisco, took the 5-Day Intensive Video Storytelling Bootcamp in 2021.

Here is a story he produced, all on his own, with only an iPhone and in a one-day turn.

TAYLOR SCHAUB

Taylor Schaub, an MMJ with Spectrum News 1 in LA, took the 5-Day Intensive Video Storytelling Bootcamp in 2023.

Here is a story he turned in only one day, using only an iPhone. It was the first video story he ever did and it was nominated for an Emmy.

THE BOOTCAMP

How do we convert stations and whole networks to working in this way?

Since 1988, we have run intensive 5-Day Video Storytelling Bootcamps

We have done these all over the world.

These are hands-on bootcamps, and participants learn an entirely new way of creating TV news stories.

-We shoot at a 3:1 ratio or lower, so turnaround times are fast.

-We go directly from camera to timelilne and edit – no written scripts.  We work in the medium of pictures and sound.

-We are entirely character-driven.

-We are driven by pictures and real events.

-We are focused almost entirely on ’the viewer experience’.

Since 1988, more than 70,000 journalists around the world have taken our bootcamps, either in person on virtualy.

Case Studies

CBS Case Study Logos
CBS News

We have started to work with CBS News, bringing our ideas of character-driven storytelling to one of the most successful and biggest networks in the United States. Since beginning to work with them ratings have climbed and more importantly, audience engagement is through the ceiling.

Learn More
NYT Case Study Logos
New York Times Television

We started New York Times Television in 1990 and it was the first paper to be brought into the world of TV. It quickly became one of the most successful non-fiction production companies in the United States. The series and documentaries we produced won many awards including multiple Emmys.

Learn More
BBC Case Study Logos
The BBC

We have been working with the BBC since the year 2000 helping to convert their national news network to our visual storytelling technique. Most recently we have trained teams from their sports, documentaries, and comedy divisions to make character-driven stories using only smartphones.

Learn More
Spectrum Case Study Logos
Spectrum News

For the past five years we have worked with Spectrum News to introduce and train their journalists on visual, character driven storytelling using smartphones helping to create a different kind of local news for their network of 24-Hour News Stations across the United States.

Learn More
UN Case Study Logos
The United Nations

In 2006, we were approached by the United Nations. Rather than rely on news outlets, it would be much easier to train the field operatives to produce their own stories. We spent two years working with the UN, training more than 100 of their staff in bootcamps in Geneva and Nairobi.

Learn More
Star Ledger Case Study Logos
The Newark Star-Ledger

We trained 50 print reporters at the paper to shoot and tell their own stories, in conjunction with their print work. We built a TV newsroom in their existing print newsroom – you could not ask for a better set and they began to live stream their stories in conjunction with their print work.

Learn More
Mcgraw Hill Case Study Logos
Mcgraw Hill

We spent two years with McGraw Hill, training more than 150 of their staffers, making them completely video literate. McGraw/Hill media properties we transit included Business Week, Aviation Week, (what was the name of the architecture magazine), and JD Power and Associates.

Learn More
VOA Case Study Logos
Voice of America

In 1990, we were approached by The Voice of America, the official broadcasting agency for the United States Government. When we met with VOA, they were only a short wave radio broadcaster, but working with them, we took them into television, launching VOA-TV.

Learn More
Oyster Case Study Logos
Oyster Yachts

British based Oyster Yachts makes some of the finest yachts in the world. Like every other company, they had to find a way to feed the never-ending video demands of social media – sites like Instagram and TikTok. We trained the Oyster staff to tell their own stories, using only iPhones.

Learn More
SEPA Case Study Logos
Scottish Environmental Protection Agency

We were approached by SEPA, the Scottish Environmental Protection Agency because they had to continually find a way to ‘feed the media beast’. The result was that SEPA was able to tell their own stories, whenever they wanted, and at almost no additional cost.

Learn More
Image 11-11-22 at 6.25 PM

Michael on Media

Michael Rosenblum has been writing about the media since 1988. His work and ideas have appeared in The Guardian, The Huffington Post, Ilkeston Life and many other publications.

He has been blogging regularly for the past 35 years on this subject. Having taught media studies at Columbia University, NYU and now the University of Oxford, he is considered an expert on this subject.

Continue reading this post or look back at previous posts.

Read More

Do You Have Questions About Learning Video Skills?

If you would like to know more about our courses contact us and one of our training advisors will be happy to call you.

Contact Us

Copyright 2024. All rights reserved.