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__/_pyio.cpython-35.opt-2.pyc



���\W�@s[ddlZddlZddlZddlZddlZddlZddlZyddlmZ	Wn"e
k
r�ddlmZ	YnXejddhkr�ddl
mZndZddlZddlmZmZmZmZdddhZeed	�r'ejej�ejej�d
dZeZdddddd
ddd�ZGdd�d�ZGdd�d�Zy
ejZWn+e k
r�Gdd�de!e"�ZYnXGdd�ddej#�Z$ej$j%e$�Gdd�de$�Z&ej&j%e&�ddl'm(Z(e&j%e(�Gdd�de$�Z)ej)j%e)�Gdd�de)�Z*Gd d!�d!e)�Z+Gd"d#�d#e*�Z,Gd$d%�d%e*�Z-Gd&d'�d'e)�Z.Gd(d)�d)e-e,�Z/Gd*d+�d+e&�Z(Gd,d-�d-e$�Z0ej0j%e0�Gd.d/�d/ej1�Z2Gd0d1�d1e0�Z3Gd2d3�d3e3�Z4dS)4�N)�
allocate_lock�win32�cygwin)�setmode)�__all__�SEEK_SET�SEEK_CUR�SEEK_END���	SEEK_HOLE�i�rTcCsSt|tttf�s(td|��t|t�sGtd|��t|t�sftd|��|dk	r�t|t�r�td|��|dk	r�t|t�r�td|��t|�}|td�s�t|�t|�krtd|��d|k}	d|k}
d	|k}d
|k}d|k}
d|k}d
|k}d|kr�|	st|st|r�td��ddl}|j	dt
d�d}
|r�|r�td��|	|
||dkr�td��|	p�|
p�|p�|std��|r#|dk	r#td��|rA|dk	rAtd��|r_|dk	r_td��t||	rqdptd|
r�dp�d|r�d	p�d|r�d
p�d|
r�dp�d|d|�}|}ynd}|dks�|dkr|j�rd!}d}|dkr]t
}ytj|j��j}Wnttfk
rJYnX|dkr]|}|dkrutd��|dkr�|r�|Std��|
r�t||�}nL|	s�|s�|r�t||�}n(|
r�t||�}ntd |��|}|r|St|||||�}|}||_|SWn|j��YnXdS)"Nzinvalid file: %rzinvalid mode: %rzinvalid buffering: %rzinvalid encoding: %rzinvalid errors: %rzaxrwb+tU�xr�w�a�+�t�b�Uz$can't use U and writing mode at oncerz'U' mode is deprecatedrTz'can't have text and binary mode at oncer
z)can't have read/write/append mode at oncez/must have exactly one of read/write/append modez-binary mode doesn't take an encoding argumentz+binary mode doesn't take an errors argumentz+binary mode doesn't take a newline argument��openerFzinvalid buffering sizezcan't have unbuffered text I/Ozunknown mode: %r���)�
isinstance�str�bytes�int�	TypeError�set�len�
ValueError�warnings�warn�DeprecationWarning�FileIO�isatty�DEFAULT_BUFFER_SIZE�os�fstat�fileno�
st_blksize�OSError�AttributeError�BufferedRandom�BufferedWriter�BufferedReader�
TextIOWrapper�mode�close)�filer1�	buffering�encoding�errors�newline�closefdrZmodesZcreatingZreadingZwritingZ	appendingZupdating�textZbinaryr!�raw�result�line_bufferingZbs�buffer�r>�5/opt/rh/rh-python35/root/usr/lib64/python3.5/_pyio.py�open)s�{(	
?$	
r@c@seZdZdd�ZdS)�
DocDescriptorcCsdtjS)Nz\open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)

)r@�__doc__)�self�obj�typr>r>r?�__get__�szDocDescriptor.__get__N)�__name__�
__module__�__qualname__rFr>r>r>r?rA�srAc@s%eZdZe�Zdd�ZdS)�OpenWrappercOs
t||�S)N)r@)�cls�args�kwargsr>r>r?�__new__szOpenWrapper.__new__N)rGrHrIrArBrNr>r>r>r?rJs	rJc@seZdZdS)�UnsupportedOperationN)rGrHrIr>r>r>r?rOsrOc@sTeZdZdd�Zddd�Zdd�Zdd	d
�Zdd�Zd
Zdd�Z	dd�Z
dd�Zddd�Zdd�Z
ddd�Zdd�Zddd�Zedd��Zdd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd5d+d,�Zd-d.�Zd/d0�Zdd1d2�Zd3d4�ZdS)6�IOBasecCs td|jj|f��dS)Nz%s.%s() not supported)rO�	__class__rG)rC�namer>r>r?�_unsupported>szIOBase._unsupportedrcCs|jd�dS)N�seek)rS)rC�pos�whencer>r>r?rTEszIOBase.seekcCs|jdd�S)Nrr
)rT)rCr>r>r?�tellUszIOBase.tellNcCs|jd�dS)N�truncate)rS)rCrUr>r>r?rXYszIOBase.truncatecCs|j�dS)N)�_checkClosed)rCr>r>r?�flushcszIOBase.flushFcCs(|js$z|j�Wdd|_XdS)NT)�_IOBase__closedrZ)rCr>r>r?r2ms	zIOBase.closec	Csy|j�WnYnXdS)N)r2)rCr>r>r?�__del__xszIOBase.__del__cCsdS)NFr>)rCr>r>r?�seekable�szIOBase.seekablecCs.|j�s*t|dkr!dn|��dS)NzFile or stream is not seekable.)r]rO)rC�msgr>r>r?�_checkSeekable�szIOBase._checkSeekablecCsdS)NFr>)rCr>r>r?�readable�szIOBase.readablecCs.|j�s*t|dkr!dn|��dS)NzFile or stream is not readable.)r`rO)rCr^r>r>r?�_checkReadable�szIOBase._checkReadablecCsdS)NFr>)rCr>r>r?�writable�szIOBase.writablecCs.|j�s*t|dkr!dn|��dS)NzFile or stream is not writable.)rbrO)rCr^r>r>r?�_checkWritable�szIOBase._checkWritablecCs|jS)N)r[)rCr>r>r?�closed�sz
IOBase.closedcCs+|jr't|dkrdn|��dS)NzI/O operation on closed file.)rdr )rCr^r>r>r?rY�s	zIOBase._checkClosedcCs|j�|S)N)rY)rCr>r>r?�	__enter__�s
zIOBase.__enter__cGs|j�dS)N)r2)rCrLr>r>r?�__exit__�szIOBase.__exit__cCs|jd�dS)Nr))rS)rCr>r>r?r)�sz
IOBase.filenocCs|j�dS)NF)rY)rCr>r>r?r%�s
z
IOBase.isattyr
cs�t�d�r'��fdd�}ndd�}�dkrHd	�nt�t�sctd��t�}xU�dks�t|��kr��j|��}|s�P||7}|jd�roPqoWt|�S)
N�peekcsW�jd�}|sdS|jd�dp5t|�}�dkrSt|��}|S)Nr
s
r)rg�findr�min)Z	readahead�n)rC�sizer>r?�
nreadahead�sz#IOBase.readline.<locals>.nreadaheadcSsdS)Nr
r>r>r>r>r?rl�sr
zsize must be an integerrs
r)	�hasattrrrr�	bytearrayr�read�endswithr)rCrkrl�resrr>)rCrkr?�readline�s 			!
zIOBase.readlinecCs|j�|S)N)rY)rCr>r>r?�__iter__s
zIOBase.__iter__cCs|j�}|st�|S)N)rr�
StopIteration)rC�liner>r>r?�__next__	szIOBase.__next__cCsm|dks|dkr"t|�Sd}g}x8|D]0}|j|�|t|�7}||kr5Pq5W|S)Nr)�list�appendr)rCZhintrj�linesrur>r>r?�	readliness


zIOBase.readlinescCs,|j�x|D]}|j|�qWdS)N)rY�write)rCryrur>r>r?�
writelines!s

zIOBase.writelinesr)rGrHrIrSrTrWrXrZr[r2r\r]r_r`rarbrc�propertyrdrYrerfr)r%rrrsrvrzr|r>r>r>r?rPs2#
	
%rP�	metaclassc@sCeZdZddd�Zdd�Zdd�Zdd	�Zd
S)�	RawIOBaser
cCsp|dkrd}|dkr(|j�St|j��}|j|�}|dkrYdS||d�=t|�S)Nr
rr)�readallrn�	__index__�readintor)rCrkrrjr>r>r?ro7s

zRawIOBase.readcCsHt�}x$|jt�}|s"P||7}qW|r@t|�S|SdS)N)rnror&r)rCrq�datar>r>r?r�Hs	
zRawIOBase.readallcCs|jd�dS)Nr�)rS)rCrr>r>r?r�VszRawIOBase.readintocCs|jd�dS)Nr{)rS)rCrr>r>r?r{^szRawIOBase.writeNr)rGrHrIror�r�r{r>r>r>r?r)sr)r$c@sjeZdZddd�Zddd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dS)�BufferedIOBaseNcCs|jd�dS)Nro)rS)rCrkr>r>r?ro{szBufferedIOBase.readcCs|jd�dS)N�read1)rS)rCrkr>r>r?r��szBufferedIOBase.read1cCs|j|dd�S)Nr�F)�	_readinto)rCrr>r>r?r��szBufferedIOBase.readintocCs|j|dd�S)Nr�T)r�)rCrr>r>r?�	readinto1�s	zBufferedIOBase.readinto1cCs}t|t�st|�}|jd�}|rH|jt|��}n|jt|��}t|�}||d|�<|S)N�B)r�
memoryview�castr�rro)rCrr�r�rjr>r>r?r��szBufferedIOBase._readintocCs|jd�dS)Nr{)rS)rCrr>r>r?r{�s	zBufferedIOBase.writecCs|jd�dS)N�detach)rS)rCr>r>r?r��szBufferedIOBase.detach)
rGrHrIror�r�r�r�r{r�r>r>r>r?r�jsr�c@seZdZdd�Zddd�Zdd�Zdd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Ze
dd��Ze
dd��Ze
dd��Ze
dd��Zdd �Zd!d"�Zd#d$�Zd%d&�ZdS)'�_BufferedIOMixincCs
||_dS)N)�_raw)rCr:r>r>r?�__init__�sz_BufferedIOMixin.__init__rcCs1|jj||�}|dkr-td��|S)Nrz#seek() returned an invalid position)r:rTr+)rCrUrVZnew_positionr>r>r?rT�sz_BufferedIOMixin.seekcCs+|jj�}|dkr'td��|S)Nrz#tell() returned an invalid position)r:rWr+)rCrUr>r>r?rW�sz_BufferedIOMixin.tellNcCs2|j�|dkr"|j�}|jj|�S)N)rZrWr:rX)rCrUr>r>r?rX�s
z_BufferedIOMixin.truncatecCs&|jrtd��|jj�dS)Nzflush of closed file)rdr r:rZ)rCr>r>r?rZ�s	z_BufferedIOMixin.flushc
Cs<|jdk	r8|jr8z|j�Wd|jj�XdS)N)r:rdrZr2)rCr>r>r?r2sz_BufferedIOMixin.closecCs;|jdkrtd��|j�|j}d|_|S)Nzraw stream already detached)r:r rZr�)rCr:r>r>r?r�	s
		z_BufferedIOMixin.detachcCs
|jj�S)N)r:r])rCr>r>r?r]sz_BufferedIOMixin.seekablecCs
|jj�S)N)r:r`)rCr>r>r?r`sz_BufferedIOMixin.readablecCs
|jj�S)N)r:rb)rCr>r>r?rbsz_BufferedIOMixin.writablecCs|jS)N)r�)rCr>r>r?r:sz_BufferedIOMixin.rawcCs
|jjS)N)r:rd)rCr>r>r?rd sz_BufferedIOMixin.closedcCs
|jjS)N)r:rR)rCr>r>r?rR$sz_BufferedIOMixin.namecCs
|jjS)N)r:r1)rCr>r>r?r1(sz_BufferedIOMixin.modecCstdj|jj���dS)Nz can not serialize a '{0}' object)r�formatrQrG)rCr>r>r?�__getstate__,s	z_BufferedIOMixin.__getstate__cCsa|jj}|jj}y
|j}Wn"tk
rIdj||�SYnXdj|||�SdS)Nz<{}.{}>z<{}.{} name={!r}>)rQrHrIrR�	Exceptionr�)rC�modnameZclsnamerRr>r>r?�__repr__0s

z_BufferedIOMixin.__repr__cCs
|jj�S)N)r:r))rCr>r>r?r)<sz_BufferedIOMixin.filenocCs
|jj�S)N)r:r%)rCr>r>r?r%?sz_BufferedIOMixin.isatty)rGrHrIr�rTrWrXrZr2r�r]r`rbr}r:rdrRr1r�r�r)r%r>r>r>r?r��s$	
r�cs�eZdZddd�Zdd�Zdd�Zdd	�Z�fd
d�Zddd
�Zdd�Z	dd�Z
ddd�Zdd�Zddd�Z
dd�Zdd�Zdd�Z�S)�BytesIONcCs5t�}|dk	r||7}||_d|_dS)Nr)rn�_buffer�_pos)rCZ
initial_bytes�bufr>r>r?r�Gs
	
	zBytesIO.__init__cCs"|jrtd��|jj�S)Nz__getstate__ on closed file)rdr �__dict__�copy)rCr>r>r?r�Ns	zBytesIO.__getstate__cCs"|jrtd��t|j�S)Nzgetvalue on closed file)rdr rr�)rCr>r>r?�getvalueSs	zBytesIO.getvaluecCs"|jrtd��t|j�S)Nzgetbuffer on closed file)rdr r�r�)rCr>r>r?�	getbufferZs	zBytesIO.getbuffercs|jj�t�j�dS)N)r��clear�superr2)rC)rQr>r?r2as
z
BytesIO.closecCs�|jrtd��|dkr'd}|dkrBt|j�}t|j�|jkr^dStt|j�|j|�}|j|j|�}||_t|�S)Nzread from closed filer
r�r)rdr rr�r�rir)rCrkZnewposrr>r>r?roes		zBytesIO.readcCs
|j|�S)N)ro)rCrkr>r>r?r�ssz
BytesIO.read1cCs�|jrtd��t|t�r0td��t|�}|dkrLdS|j}|t|j�kr�d|t|j�}|j|7_||j|||�<|j|7_|S)Nzwrite to closed filez can't write str to binary streamrs)rdr rrrrr�r�)rCrrjrUZpaddingr>r>r?r{xs		z
BytesIO.writercCs�|jrtd��y|jWn4tk
rV}ztd�|�WYdd}~XnX|dkr�|dkr�td|f��||_nb|dkr�td|j|�|_n:|dkr�tdt|j�|�|_ntd��|jS)Nzseek on closed filezan integer is requiredrznegative seek position %rr
rzunsupported whence value)	rdr r�r,rr��maxrr�)rCrUrV�errr>r>r?rT�s 	""zBytesIO.seekcCs|jrtd��|jS)Nztell on closed file)rdr r�)rCr>r>r?rW�s	zBytesIO.tellcCs�|jrtd��|dkr-|j}nay|jWn4tk
rn}ztd�|�WYdd}~XnX|dkr�td|f��|j|d�=|S)Nztruncate on closed filezan integer is requiredrznegative truncate position %r)rdr r�r�r,rr�)rCrUr�r>r>r?rX�s	"zBytesIO.truncatecCs|jrtd��dS)NzI/O operation on closed file.T)rdr )rCr>r>r?r`�s	zBytesIO.readablecCs|jrtd��dS)NzI/O operation on closed file.T)rdr )rCr>r>r?rb�s	zBytesIO.writablecCs|jrtd��dS)NzI/O operation on closed file.T)rdr )rCr>r>r?r]�s	zBytesIO.seekable)rGrHrIr�r�r�r�r2ror�r{rTrWrXr`rbr]r>r>)rQr?r�Csr�c@s�eZdZedd�Zdd�Zddd�Zddd	�Zd
dd�Zd
d
d�Z	dd�Z
dd�Zdd�Zd
dd�Z
dS)r/cCsc|j�std��tj||�|dkr@td��||_|j�t�|_dS)Nz "raw" argument must be readable.rzinvalid buffer size)	r`r+r�r�r �buffer_size�_reset_read_buf�Lock�
_read_lock)rCr:r�r>r>r?r��s	
zBufferedReader.__init__cCsd|_d|_dS)Nr�r)�	_read_buf�	_read_pos)rCr>r>r?r��s	zBufferedReader._reset_read_bufNc	CsF|dk	r$|dkr$td��|j�|j|�SWdQRXdS)Nr
zinvalid number of bytes to readr)r r��_read_unlocked)rCrkr>r>r?ro�s
zBufferedReader.readcCsd}d}|j}|j}|dks6|dkr|j�t|jd�r�|jj�}|dkr�||d�p�dS||d�|S||d�g}d}xC|jj�}||kr�|}P|t|�7}|j|�q�Wdj	|�p|St|�|}	||	krB|j|7_||||�S||d�g}t
|j|�}
xR|	|kr�|jj|
�}||kr�|}P|	t|�7}	|j|�qjWt||	�}dj	|�}||d�|_d|_|r
|d|�S|S)Nr�r
r�r)r�Nr)
r�r�r�rmr:r�rorrx�joinr�r�ri)rCrjZ
nodata_valZempty_valuesr�rU�chunkZchunksZcurrent_size�availZwanted�outr>r>r?r��sN		
	zBufferedReader._read_unlockedrc	Cs"|j�|j|�SWdQRXdS)N)r��_peek_unlocked)rCrkr>r>r?rgs
zBufferedReader.peekcCs�t||j�}t|j�|j}||ks@|dkr�|j|}|jj|�}|r�|j|jd�||_d|_|j|jd�S)Nr)rir�rr�r�r:ro)rCrjZwantZhaveZto_readZcurrentr>r>r?r�(s
	zBufferedReader._peek_unlockedcCsp|dkrtd��|dkr(dS|j�8|jd�|jt|t|j�|j��SWdQRXdS)Nrz(number of bytes to read must be positiver�r
)r r�r�r�rirr�r�)rCrkr>r>r?r�3s

zBufferedReader.read1cCsht|�dkrdSt|t�s1t|�}|jd�}d}|j�x
|t|�kr\tt|j�|jt|��}|r�|j|j|j|�||||�<|j|7_||7}|t|�kr�Pt|�||jkr0|j	j
||d��}|s#P||7}n|o9|sL|jd�sLP|rS|rSPqSWWdQRX|S)Nrr�r
)rrr�r�r�rir�r�r�r:r�r�)rCr�r��writtenr�rjr>r>r?r�Es4
%+

zBufferedReader._readintocCs!tj|�t|j�|jS)N)r�rWrr�r�)rCr>r>r?rWtszBufferedReader.tellcCsv|tkrtd��|j�N|dkrH|t|j�|j8}tj|||�}|j�|SWdQRXdS)Nzinvalid whence valuer
)	�valid_seek_flagsr r�rr�r�r�rTr�)rCrUrVr>r>r?rTws

zBufferedReader.seek)rGrHrIr&r�r�ror�rgr�r�r�rWrTr>r>r>r?r/�s

4
/r/c@smeZdZedd�Zdd�Zddd�Zdd	�Zd
d�Zdd
�Z	ddd�Z
dS)r.cCse|j�std��tj||�|dkr@td��||_t�|_t�|_	dS)Nz "raw" argument must be writable.rzinvalid buffer size)
rbr+r�r�r r�rn�
_write_bufr��_write_lock)rCr:r�r>r>r?r��s	zBufferedWriter.__init__cCsT|jrtd��t|t�r0td��|j�t|j�|jkr\|j	�t|j�}|jj
|�t|j�|}t|j�|jkrEy|j	�Wn�tk
rD}znt|j�|jkr2t|j�|j}||8}|jd|j�|_t|j|j
|��WYdd}~XnX|SWdQRXdS)Nzwrite to closed filez can't write str to binary stream)rdr rrrr�rr�r��_flush_unlocked�extend�BlockingIOError�errno�strerror)rCrZbeforer��eZoverager>r>r?r{�s(	


+zBufferedWriter.writeNc	CsJ|j�:|j�|dkr/|jj�}|jj|�SWdQRXdS)N)r�r�r:rWrX)rCrUr>r>r?rX�s


zBufferedWriter.truncatec	Cs|j�|j�WdQRXdS)N)r�r�)rCr>r>r?rZ�s
zBufferedWriter.flushcCs�|jrtd��x�|jr�y|jj|j�}Wntk
rZtd��YnX|dkr|ttjdd��|t	|j�ks�|dkr�t
d��|jd|�=qWdS)Nzflush of closed filezHself.raw should implement RawIOBase: it should not raise BlockingIOErrorz)write could not complete without blockingrz*write() returned incorrect number of bytes)rdr r�r:r{r��RuntimeErrorr�ZEAGAINrr+)rCrjr>r>r?r��s	
!zBufferedWriter._flush_unlockedcCstj|�t|j�S)N)r�rWrr�)rCr>r>r?rW�szBufferedWriter.tellrcCsJ|tkrtd��|j�"|j�tj|||�SWdQRXdS)Nzinvalid whence value)r�r r�r�r�rT)rCrUrVr>r>r?rT�s


zBufferedWriter.seek)rGrHrIr&r�r{rXrZr�rWrTr>r>r>r?r.�s	r.c@s�eZdZedd�Zddd�Zdd�Zdd	�Zd
dd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zedd��ZdS)�BufferedRWPaircCsX|j�std��|j�s0td��t||�|_t||�|_dS)Nz#"reader" argument must be readable.z#"writer" argument must be writable.)r`r+rbr/�readerr.�writer)rCr�r�r�r>r>r?r��szBufferedRWPair.__init__NcCs"|dkrd}|jj|�S)Nr
r)r�ro)rCrkr>r>r?ro�szBufferedRWPair.readcCs|jj|�S)N)r�r�)rCrr>r>r?r��szBufferedRWPair.readintocCs|jj|�S)N)r�r{)rCrr>r>r?r{�szBufferedRWPair.writercCs|jj|�S)N)r�rg)rCrkr>r>r?rgszBufferedRWPair.peekcCs|jj|�S)N)r�r�)rCrkr>r>r?r�szBufferedRWPair.read1cCs|jj|�S)N)r�r�)rCrr>r>r?r�szBufferedRWPair.readinto1cCs
|jj�S)N)r�r`)rCr>r>r?r`
szBufferedRWPair.readablecCs
|jj�S)N)r�rb)rCr>r>r?rb
szBufferedRWPair.writablecCs
|jj�S)N)r�rZ)rCr>r>r?rZszBufferedRWPair.flushc
Cs&z|jj�Wd|jj�XdS)N)r�r2r�)rCr>r>r?r2szBufferedRWPair.closecCs|jj�p|jj�S)N)r�r%r�)rCr>r>r?r%szBufferedRWPair.isattycCs
|jjS)N)r�rd)rCr>r>r?rdszBufferedRWPair.closed)rGrHrIr&r�ror�r{rgr�r�r`rbrZr2r%r}rdr>r>r>r?r��sr�c@s�eZdZedd�Zddd�Zdd�Zdd	d
�Zddd�Zd
d�Z	ddd�Z
dd�Zdd�Zdd�Z
dS)r-cCs4|j�tj|||�tj|||�dS)N)r_r/r�r.)rCr:r�r>r>r?r�*s
zBufferedRandom.__init__rcCs�|tkrtd��|j�|jr_|j�(|jj|jt|j�d�WdQRX|jj||�}|j�|j	�WdQRX|dkr�t
d��|S)Nzinvalid whence valuer
rz seek() returned invalid position)r�r rZr�r�r:rTr�rr�r+)rCrUrVr>r>r?rT/s
	
*
zBufferedRandom.seekcCs'|jrtj|�Stj|�SdS)N)r�r.rWr/)rCr>r>r?rW@s	
zBufferedRandom.tellNcCs(|dkr|j�}tj||�S)N)rWr.rX)rCrUr>r>r?rXFszBufferedRandom.truncatecCs,|dkrd}|j�tj||�S)Nr
r)rZr/ro)rCrkr>r>r?roLs
zBufferedRandom.readcCs|j�tj||�S)N)rZr/r�)rCrr>r>r?r�Rs
zBufferedRandom.readintocCs|j�tj||�S)N)rZr/rg)rCrkr>r>r?rgVs
zBufferedRandom.peekcCs|j�tj||�S)N)rZr/r�)rCrkr>r>r?r�Zs
zBufferedRandom.read1cCs|j�tj||�S)N)rZr/r�)rCrr>r>r?r�^s
zBufferedRandom.readinto1cCsW|jrG|j�2|jj|jt|j�d�|j�WdQRXtj||�S)Nr
)	r�r�r:rTr�rr�r.r{)rCrr>r>r?r{bs
	
#zBufferedRandom.write)rGrHrIr&r�rTrWrXror�rgr�r�r{r>r>r>r?r-!s	r-cs]eZdZd0ZdZdZdZdZdZdZ	ddddd�Z
dd	�Zd
d�Zdd
�Z
dd�Zddd�Zddd�Zdd�Zdd�Zdd�Zedd�Zdd�Zddd�Z�fd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zed,d-��Zed.d/��Z �S)1r$r
FNTrc
Cs|jdkr9z|jr+tj|j�Wdd|_Xt|t�rTtd��t|t�r�|}|dkr�td��nd}t|t	�s�td|f��t
|�t
d�ks�td|f��tdd�|D��dks|jd	�dkrtd
��d|krHd|_
d|_tjtjB}ntd
|krfd|_d}nVd|kr�d|_tjtjB}n.d|kr�d|_d|_tjtjB}d	|kr�d|_d|_|jr�|jr�|tjO}n&|jr|tjO}n
|tjO}|ttdd�O}ttdd�pYttdd�}||O}d}yp|dkr|s�td��|dkr�tj||d�}nB|||�}t|t�s�td��|dkr�td��|}|stj|d�||_tj|�}	y7tj|	j�r]t t!j"tj#t!j"�|��Wnt$k
rrYnXt|	dd�|_%|j%dkr�t&|_%t'r�t'|tj(�||_)|jr�tj*|dt+�Wn$|dk	r�tj|��YnX||_dS)Nrr
z$integer argument expected, got floatznegative file descriptorzinvalid mode: %szxrwab+css|]}|dkVqdS)ZrwaxNr>)�.0�cr>r>r?�	<genexpr>�sz"FileIO.__init__.<locals>.<genexpr>rzKMust have exactly one of create/read/write/append mode and at most one plusrTrrr�O_BINARYZO_NOINHERIT�	O_CLOEXECz'Cannot use closefd=False with file namei�zexpected integer from openerzNegative file descriptorFr*rr),�_fd�_closefdr'r2r�floatrrr rr�sum�count�_created�	_writable�O_EXCL�O_CREAT�	_readable�O_TRUNC�
_appending�O_APPEND�O_RDWR�O_RDONLY�O_WRONLY�getattrr@r+�set_inheritabler(�stat�S_ISDIR�st_mode�IsADirectoryErrorr�ZEISDIRr�r,�_blksizer&�_setmoder�rR�lseekr	)
rCr3r1r8r�fd�flagsZnoinherit_flagZowned_fdZfdfstatr>r>r?r�ts�
	
4										

		
			
zFileIO.__init__cCsY|jdkrU|jrU|jrUddl}|jd|ftdd�|j�dS)Nrzunclosed file %r�
stacklevelr)r�r�rdr!r"�ResourceWarningr2)rCr!r>r>r?r\�s
"zFileIO.__del__cCstd|jj��dS)Nzcannot serialize '%s' object)rrQrG)rCr>r>r?r��szFileIO.__getstate__c
Cs�d|jj|jjf}|jr-d|Sy
|j}Wn/tk
rkd||j|j|jfSYnXd|||j|jfSdS)Nz%s.%sz
<%s [closed]>z<%s fd=%d mode=%r closefd=%r>z<%s name=%r mode=%r closefd=%r>)	rQrHrIrdrRr,r�r1r�)rCZ
class_namerRr>r>r?r��s	

zFileIO.__repr__cCs|jstd��dS)NzFile not open for reading)r�rO)rCr>r>r?ras	zFileIO._checkReadablecCs|jstd��dS)NzFile not open for writing)r�rO)rCr^r>r>r?rcs	zFileIO._checkWritablecCsj|j�|j�|dks,|dkr6|j�Sytj|j|�SWntk
redSYnXdS)Nr)rYrar�r'ror�r�)rCrkr>r>r?ro	s



zFileIO.readcCs|j�|j�t}yKtj|jdt�}tj|j�j}||krd||d}Wnt	k
ryYnXt
�}x�t|�|kr�t|�}|t|t�7}|t|�}ytj
|j|�}Wntk
r�|r�PdSYnX|sP||7}q�Wt|�S)Nrr
)rYrar&r'r�r�rr(�st_sizer+rnrr�ror�r)rC�bufsizerU�endr;rjr�r>r>r?r�s4


	
	zFileIO.readallcCsJt|�jd�}|jt|��}t|�}||d|�<|S)Nr�)r�r�ror)rCr�mr�rjr>r>r?r�<s
zFileIO.readintocCsH|j�|j�ytj|j|�SWntk
rCdSYnXdS)N)rYrcr'r{r�r�)rCrr>r>r?r{Ds


zFileIO.writecCs;t|t�rtd��|j�tj|j||�S)Nzan integer is required)rr�rrYr'r�r�)rCrUrVr>r>r?rTRs
zFileIO.seekcCs |j�tj|jdt�S)Nr)rYr'r�r�r)rCr>r>r?rWbs
zFileIO.tellcCsC|j�|j�|dkr,|j�}tj|j|�|S)N)rYrcrWr'�	ftruncater�)rCrkr>r>r?rXis

zFileIO.truncatec
s;|js7z|jr%tj|j�Wdt�j�XdS)N)rdr�r'r2r�r�)rC)rQr>r?r2vs
		zFileIO.closecCsU|j�|jdkrNy|j�Wntk
rDd|_Yn
Xd|_|jS)NFT)rY�	_seekablerWr+)rCr>r>r?r]�s

	zFileIO.seekablecCs|j�|jS)N)rYr�)rCr>r>r?r`�s
zFileIO.readablecCs|j�|jS)N)rYr�)rCr>r>r?rb�s
zFileIO.writablecCs|j�|jS)N)rYr�)rCr>r>r?r)�s
z
FileIO.filenocCs|j�tj|j�S)N)rYr'r%r�)rCr>r>r?r%�s
z
FileIO.isattycCs|jS)N)r�)rCr>r>r?r8�szFileIO.closefdcCs_|jr|jrdSdSn>|jr:|jr3dSdSn!|jrW|jrPdSdSndSdS)Nzxb+Zxbzab+Zabzrb+�rb�wb)r�r�r�r�)rCr>r>r?r1�s						zFileIO.moder)!rGrHrIr�r�r�r�r�r�r�r�r\r�r�rarcror�r�r{rrTrWrXr2r]r`rbr)r%r}r8r1r>r>)rQr?r$ks8u#

r$c@s�eZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zed
d��Z	edd��Z
edd��ZdS)�
TextIOBaser
cCs|jd�dS)Nro)rS)rCrkr>r>r?ro�szTextIOBase.readcCs|jd�dS)Nr{)rS)rC�sr>r>r?r{�szTextIOBase.writeNcCs|jd�dS)NrX)rS)rCrUr>r>r?rX�szTextIOBase.truncatecCs|jd�dS)Nrr)rS)rCr>r>r?rr�szTextIOBase.readlinecCs|jd�dS)Nr�)rS)rCr>r>r?r��szTextIOBase.detachcCsdS)Nr>)rCr>r>r?r5�szTextIOBase.encodingcCsdS)Nr>)rCr>r>r?�newlines�szTextIOBase.newlinescCsdS)Nr>)rCr>r>r?r6�szTextIOBase.errorsr)rGrHrIror{rXrrr�r}r5r�r6r>r>r>r?r��s	
	
r�c@sveZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
ZdZ	dZ
edd��ZdS)�IncrementalNewlineDecoder�strictcCs>tjj|d|�||_||_d|_d|_dS)Nr6rF)�codecs�IncrementalDecoderr��	translate�decoder�seennl�	pendingcr)rCr�r�r6r>r>r?r�	s
			z"IncrementalNewlineDecoder.__init__FcCs+|jdkr|}n|jj|d|�}|jrX|sE|rXd|}d|_|jd�r�|r�|dd�}d|_|jd�}|jd�|}|jd�|}|j|o�|j|o�|jB|o�|jBO_|j	r'|r|j
dd�}|r'|j
dd�}|S)	N�final�
Fr
Tz
�
r)r��decoder�rpr�r��_LF�_CR�_CRLFr��replace)rC�inputr��outputZcrlfZcrZlfr>r>r?r�s(	
		+	z IncrementalNewlineDecoder.decodecCsZ|jdkrd}d}n|jj�\}}|dK}|jrP|dO}||fS)Nr�rr
)r��getstater�)rCr��flagr>r>r?r�/s	
	
z"IncrementalNewlineDecoder.getstatecCsL|\}}t|d@�|_|jdk	rH|jj||d?f�dS)Nr
)�boolr�r��setstate)rC�stater�r�r>r>r?r�:sz"IncrementalNewlineDecoder.setstatecCs2d|_d|_|jdk	r.|jj�dS)NrF)r�r�r��reset)rCr>r>r?r�@s		zIncrementalNewlineDecoder.resetr
r�c
Csd|jS)	Nr�r��
�r�r��r�r�r�r�r�r�r)Nr�r�rrrrr)r�)rCr>r>r?r�Jsz"IncrementalNewlineDecoder.newlinesN)
rGrHrIr�r�r�r�r�r�r�r�r}r�r>r>r>r?r�sr�c@s�eZdZdZddddddd�Zdd�Zedd	��Zed
d��Zedd
��Z	edd��Z
dd�Zdd�Zdd�Z
dd�Zdd�Zedd��Zedd��Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zdd*d+�Zd,d-�Zd.d/�Zd0d0d0d0d1d2�Zd3d4�Zd5d6�Zdd7d8�Zd9d:�Zd0d;d<�Z dd=d>�Z!d?d@�Z"ddAdB�Z#edCdD��Z$dS)Er0iNFc
Cs�|dk	r5t|t�r5tdt|�f��|dkrTtd|f��|dkr�ytj|j��}Wntt	fk
r�YnX|dkr�yddl
}Wntk
r�d}YnX|jd	�}t|t�s�td
|��t
j|�js!d}t||��|dkr6d}nt|t�sUtd
|��||_||_||_||_||_|dk|_||_|dk|_|p�tj|_d|_d|_d|_d|_d|_|j j!�|_"|_#t$|j d�|_%d|_&|j"r||j'�r||j j(�}	|	dkr|y|j)�j*d�Wntk
r{YnXdS)Nzillegal newline type: %rrr�r��
zillegal newline value: %rr�asciiFzinvalid encoding: %rzG%r is not a text encoding; use codecs.open() to handle arbitrary codecsr�zinvalid errors: %rr�g)Nrr�r�r)+rrr�typer r'�device_encodingr)r,rO�locale�ImportError�getpreferredencodingr��lookup�_is_text_encoding�LookupErrorr��_line_buffering�	_encoding�_errors�_readuniversal�_readtranslate�_readnl�_writetranslate�linesep�_writenl�_encoder�_decoder�_decoded_chars�_decoded_chars_used�	_snapshotr=r]r��_tellingrm�
_has_read1�	_b2cratiorbrW�_get_encoderr�)
rCr=r5r6r7r<Z
write_throughr
r^�positionr>r>r?r�ts`
					
							
zTextIOWrapper.__init__cCs�dj|jj|jj�}y
|j}Wntk
r?YnX|dj|�7}y
|j}Wntk
rtYnX|dj|�7}|dj|j�S)Nz<{}.{}z name={0!r}z mode={0!r}z encoding={0!r}>)r�rQrHrIrRr�r1r5)rCr;rRr1r>r>r?r��s



zTextIOWrapper.__repr__cCs|jS)N)r)rCr>r>r?r5�szTextIOWrapper.encodingcCs|jS)N)r)rCr>r>r?r6�szTextIOWrapper.errorscCs|jS)N)r)rCr>r>r?r<�szTextIOWrapper.line_bufferingcCs|jS)N)r�)rCr>r>r?r=�szTextIOWrapper.buffercCs|jrtd��|jS)NzI/O operation on closed file.)rdr r�)rCr>r>r?r]�s	zTextIOWrapper.seekablecCs
|jj�S)N)r=r`)rCr>r>r?r`�szTextIOWrapper.readablecCs
|jj�S)N)r=rb)rCr>r>r?rb�szTextIOWrapper.writablecCs|jj�|j|_dS)N)r=rZr�r)rCr>r>r?rZ�s
zTextIOWrapper.flushc
Cs<|jdk	r8|jr8z|j�Wd|jj�XdS)N)r=rdrZr2)rCr>r>r?r2�szTextIOWrapper.closecCs
|jjS)N)r=rd)rCr>r>r?rd�szTextIOWrapper.closedcCs
|jjS)N)r=rR)rCr>r>r?rR�szTextIOWrapper.namecCs
|jj�S)N)r=r))rCr>r>r?r)�szTextIOWrapper.filenocCs
|jj�S)N)r=r%)rCr>r>r?r%�szTextIOWrapper.isattycCs|jrtd��t|t�s:td|jj��t|�}|jsX|j	oad|k}|r�|jr�|j
dkr�|jd|j
�}|jp�|j
�}|j|�}|jj|�|j	r�|s�d|kr�|j�d|_|jr|jj�|S)Nzwrite to closed filezcan't write %s to text streamr�r�)rdr rrrrQrGrrrrr�rr!�encoder=r{rZrrr�)rCr�ZlengthZhaslf�encoderrr>r>r?r{�s$	
		
zTextIOWrapper.writecCs+tj|j�}||j�|_|jS)N)r��getincrementalencoderrrr)rCZmake_encoderr>r>r?r!szTextIOWrapper._get_encodercCsItj|j�}||j�}|jr<t||j�}||_|S)N)r��getincrementaldecoderrrrr�rr)rCZmake_decoderr�r>r>r?�_get_decoders		zTextIOWrapper._get_decodercCs||_d|_dS)Nr)rr)rC�charsr>r>r?�_set_decoded_chars%s	z TextIOWrapper._set_decoded_charscCs[|j}|dkr+|j|d�}n|j|||�}|jt|�7_|S)N)rrr)rCrj�offsetr(r>r>r?�_get_decoded_chars*s	z TextIOWrapper._get_decoded_charscCs.|j|krtd��|j|8_dS)Nz"rewind decoded_chars out of bounds)r�AssertionError)rCrjr>r>r?�_rewind_decoded_chars4sz#TextIOWrapper._rewind_decoded_charscCs�|jdkrtd��|jr9|jj�\}}|jrZ|jj|j�}n|jj|j�}|}|jj	||�}|j
|�|r�t|�t|j�|_
n	d|_
|jr�|||f|_|S)Nz
no decoderg)rr rr�rr=r��_CHUNK_SIZEror�r)rrr r)rC�
dec_buffer�	dec_flags�input_chunk�eofZ
decoded_charsr>r>r?�_read_chunk:s 		
		zTextIOWrapper._read_chunkrcCs*||d>B|d>B|d>Bt|�d>BS)N�@���)r�)rCr"r0�
bytes_to_feed�need_eof�
chars_to_skipr>r>r?�_pack_cookiedszTextIOWrapper._pack_cookiecCsgt|d�\}}t|d�\}}t|d�\}}t|d�\}}|||||fS)Nr
r4llll)�divmod)rCZbigint�restr"r0r8r9r:r>r>r?�_unpack_cookiens
zTextIOWrapper._unpack_cookiecCs|jstd��|js*td��|j�|jj�}|j}|dksg|jdkr�|j	r|t
d��|S|j\}}|t|�8}|j}|dkr�|j
||�S|j�}zt|j|�}d}x�|dkr�|jd|f�t|j|d|���}	|	|kr{|j�\}
}|
sb|}||	8}P|t|
�8}d}q�||8}|d}q�Wd}|jd|f�||}|}
|dkr�|j
||
�Sd}d}d}x�t|t|��D]�}|d7}|t|j|||d���7}|j�\}}|r�||kr�||7}||8}|dd}
}}||krPqW|t|jddd	��7}d}||kr�td
��|j
||
|||�SWd|j|�XdS)Nz!underlying stream is not seekablez(telling position disabled by next() callzpending decoded textrr
r�rr�Tz'can't reconstruct logical file position)r�rOrr+rZr=rWrrrr,rrr;r�rr r�r��range)rCr"r�r0Z
next_inputr:Zsaved_stateZ
skip_bytesZ	skip_backrjr�d�	start_posZstart_flagsZ	bytes_fedr9Z
chars_decoded�ir/r>r>r?rWusv		
			
	


'

zTextIOWrapper.tellcCs2|j�|dkr"|j�}|jj|�S)N)rZrWr=rX)rCrUr>r>r?rX�s
zTextIOWrapper.truncatecCs;|jdkrtd��|j�|j}d|_|S)Nzbuffer is already detached)r=r rZr�)rCr=r>r>r?r��s
		zTextIOWrapper.detachcsm�fdd�}�jr'td���js<td��|dkrr|dkr`td��d}�j�}|dkr�|dkr�td	���j��jjdd�}�jd
�d�_	�j
r��j
j�||�|S|dkrtd|f��|dkr-td|f���j��j|�\}}}}}	�jj|��jd
�d�_	|dkr��j
r��j
j�nR�j
s�|s�|	r��j
p��j
��_
�j
jd
|f�|d
f�_	|	r_�jj|�}
�j�j
j|
|��||
f�_	t�j�|	krVtd��|	�_||�|S)NcsXy�jp�j�}Wntk
r-Yn'X|dkrJ|jd�n
|j�dS)Nr)rr!rr�r�)r"r$)rCr>r?�_reset_encoder�s
z*TextIOWrapper.seek.<locals>._reset_encoderztell on closed filez!underlying stream is not seekabler
rz#can't do nonzero cur-relative seeksrz#can't do nonzero end-relative seeksrzunsupported whence (%r)znegative seek position %rr�z#can't restore logical file position)rdr r�rOrWrZr=rTr)rrr�r>r'r�ror�rrr+r)rCZcookierVrCr"rAr0r8r9r:r1r>)rCr?rT�s\
		

		



		
zTextIOWrapper.seekcCs(|j�|dkrd}|jp.|j�}y|jWn4tk
rr}ztd�|�WYdd}~XnX|dkr�|j�|j|jj	�dd�}|j
d�d|_|Sd}|j|�}xGt|�|kr|r|j
�}||j|t|��7}q�W|SdS)	Nr
zan integer is requiredrr�TrFr)rarr'r�r,rr+r�r=ror)rrr3)rCrkr�r�r;r2r>r>r?ro1	s(
"	
	
!zTextIOWrapper.readcCs:d|_|j�}|s6d|_|j|_t�|S)NF)rrrrr�rt)rCrur>r>r?rvJ	s		zTextIOWrapper.__next__cCsn|jrtd��|dkr*d	}nt|t�sEtd��|j�}d}|jsj|j�d}}x�|jr�|j	d|�}|dkr�|d}Pq�t
|�}n�|jr}|j	d|�}|j	d|�}|d
kr|dkrt
|�}qz|d}Pq�|dkr7|d}Pq�||krQ|d}Pq�||dkro|d}Pq�|d}Pn2|j	|j�}|dkr�|t
|j�}P|dkr�t
|�|kr�|}Px|j
�r�|jr�Pq�W|jr
||j�7}qw|jd�d|_|SqwW|dkrI||krI|}|jt
|�|�|d|�S)
Nzread from closed filer
zsize must be an integerrr�r�rrrrrr)rdr rrrr+rr'rrhrrrr3rr)rr-)rCrkru�startrU�endposZnlposZcrposr>r>r?rrS	sp			

	
	




		
	zTextIOWrapper.readlinecCs|jr|jjSdS)N)rr�)rCr>r>r?r��	szTextIOWrapper.newlines)%rGrHrIr.r�r�r}r5r6r<r=r]r`rbrZr2rdrRr)r%r{r!r'r)r+r-r3r;r>rWrXr�rTrorvrrr�r>r>r>r?r0WsF	E
*	cK	Xr0cspeZdZdd�fdd�Zdd�Zdd�Zed	d
��Zedd��Zd
d�Z	�S)�StringIOrr�cs�tt|�jt�ddddd|�|dkr@d|_|dk	r�t|t�sytdjt	|�j
���|j|�|jd�dS)	Nr5zutf-8r6�
surrogatepassr7Fz*initial_value must be str or None, not {0}r)
r�rFr�r�rrrrr�rrGr{rT)rCZ
initial_valuer7)rQr>r?r��	s		
zStringIO.__init__cCsj|j�|jp|j�}|j�}|j�z |j|jj�dd�SWd|j|�XdS)Nr�T)	rZrr'r�r�r�r=r�r�)rCr�Z	old_stater>r>r?r��	s

 zStringIO.getvaluecCs
tj|�S)N)�objectr�)rCr>r>r?r��	szStringIO.__repr__cCsdS)Nr>)rCr>r>r?r6�	szStringIO.errorscCsdS)Nr>)rCr>r>r?r5�	szStringIO.encodingcCs|jd�dS)Nr�)rS)rCr>r>r?r��	szStringIO.detach)
rGrHrIr�r�r�r}r6r5r�r>r>)rQr?rF�	s
rF)5r'�abcr�r�Zarrayr��sys�_threadrr�rZ
_dummy_thread�platformZmsvcrtrr��iorrrr	r�rm�addr�	SEEK_DATAr&r�r@rArJrOr,r r+�ABCMetarP�registerr�_ior$r�r�r�r/r.r�r-r�r�r�r0rFr>r>r>r?�<module>sj
"

�	

�<
go~�WIJ�TAU��[

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.