#NEWLINE# def __init__( self , name , old_mod , new_mod , old_attr = None , new_attr = None ) : #NEWLINE# #INDENT# super ( MovedAttribute , self ) . __init__ ( name ) #NEWLINE# if PY3 : #NEWLINE# #INDENT# if ( new_mod is None ) : #NEWLINE# #INDENT# new_mod = name #NEWLINE# #UNINDENT# self . mod = new_mod #NEWLINE# if ( new_attr is None ) : #NEWLINE# #INDENT# if ( old_attr is None ) : #NEWLINE# #INDENT# new_attr = name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_attr = old_attr #NEWLINE# #UNINDENT# #UNINDENT# self . attr = new_attr #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . mod = old_attr #NEWLINE# if ( old_attr is None ) : #NEWLINE# #INDENT# old_attr = name #NEWLINE# #UNINDENT# self . attr = old_attr