#NEWLINE# def _interpret_source( self , source ) : #NEWLINE# #INDENT# ( is_url , is_local_path , is_fileobj ) = ( False , False , False ) #NEWLINE# if isinstance ( source , basestring ) : #NEWLINE# #INDENT# if path_util . path_is_url ( source ) : #NEWLINE# #INDENT# is_url = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# is_local_path = True #NEWLINE# #UNINDENT# filename = os . path . basename ( os . path . normpath ( source ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# is_fileobj = True #NEWLINE# filename = source [ 0 ] #NEWLINE# #UNINDENT# return ( is_url , is_local_path , is_fileobj , filename )