#NEWLINE# def __getslice__( self , start , end ) : #NEWLINE# #INDENT# current = self . file . tell ( ) #NEWLINE# self . file . seek ( ( self . position + start ) ) #NEWLINE# if ( ( start < end ) and ( start <= self . length ) ) : #NEWLINE# #INDENT# if ( end > self . length ) : #NEWLINE# #INDENT# end = self . length #NEWLINE# #UNINDENT# data = self . file . read ( ( end - start ) ) #NEWLINE# self . file . seek ( current ) #NEWLINE# return end #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ''