<s> import os , sys <EOL> parentdir = os . path . dirname ( __file__ ) <EOL> sys . path . insert ( <NUM_LIT:0> , parentdir ) <EOL> import executemechanize <EOL> class redirection : <EOL> def createarray ( self ) : <EOL> setattr ( self , "<STR_LIT>" , [ ] ) <EOL> def appendurl ( self , url ) : <EOL> url = str ( url ) <EOL> if not url . endswith ( "<STR_LIT>" ) or url . endswith ( "<STR_LIT>" ) : <EOL> self . redirection_list . append ( url ) ; <EOL> self . passarray ( ) <EOL> def passarray ( self ) : <EOL> executemechanize . set_redirection_list ( self . redirection_list ) </s>
