#NEWLINE# def link( self , path ) : #NEWLINE# #INDENT# res = [ ] #NEWLINE# p = self . _call ( 'link {0}' . format ( path ) ) #NEWLINE# for line in iter ( p . stdout . readline , b'' ) : #NEWLINE# #INDENT# res . append ( p ) #NEWLINE# line = line . decode ( ) #NEWLINE# index = line . find ( 'dat://' ) #NEWLINE# if ( index > ( - 1 ) ) : #NEWLINE# #INDENT# self . _opened . append ( p ) #NEWLINE# link = line [ index : ] . strip ( ) #NEWLINE# return link #NEWLINE# #UNINDENT# #UNINDENT# for line in iter ( p . stderr . readline , b'' ) : #NEWLINE# #INDENT# res . append ( line ) #NEWLINE# #UNINDENT# raise Exception ( '' . join ( res ) )