<s> """<STR_LIT>""" <EOL> __docformat__ = '<STR_LIT>' <EOL> from . . utils import auto_repr <EOL> @ auto_repr <EOL> class FileStatus ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , size = None , mtime = None , filename = None ) : <EOL> self . size = size <EOL> self . mtime = mtime <EOL> self . filename = filename <EOL> def __eq__ ( self , other ) : <EOL> if self . size is None and self . mtime is None and self . filename is None : <EOL> return NotImplemented <EOL> if other . size is None and other . mtime is None and other . filename is None : <EOL> return NotImplemented <EOL> same = self . size == other . size and self . filename == other . filename <EOL> if not same : <EOL> return False <EOL> if self . mtime == other . mtime : <EOL> return True <EOL> elif self . mtime is None or other . mtime is None : <EOL> return False <EOL> if isinstance ( self . mtime , int ) or isinstance ( other . mtime , int ) : <EOL> return int ( self . mtime ) == int ( other . mtime ) <EOL> return False <EOL> def __ne__ ( self , other ) : <EOL> out = self == other <EOL> if isinstance ( out , bool ) : <EOL> return not out <EOL> elif out is NotImplemented : <EOL> return out <EOL> else : <EOL> raise RuntimeError ( "<STR_LIT>" % ( out , ) ) </s>
