#NEWLINE# def add( self , cookies ) : #NEWLINE# #INDENT# if isinstance ( cookies , list ) : #NEWLINE# #INDENT# for cookie in self : #NEWLINE# #INDENT# for ( key , value ) in cookie . items ( ) : #NEWLINE# #INDENT# self . driver . add_cookie ( { #NEWLINE# #INDENT# 'name' : key , #NEWLINE# 'value' : value , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return #NEWLINE# #UNINDENT# #UNINDENT# for ( key , value ) in cookies . items ( ) : #NEWLINE# #INDENT# self . driver . add_cookie ( { #NEWLINE# #INDENT# 'name' : key , #NEWLINE# 'value' : value , #NEWLINE# #UNINDENT# } )