def MakeStatResponse(st, pathspec):
 response = client.StatEntry(pathspec=pathspec)
 if (st is None):
  pass
 else:
  for attr in ['st_mode', 'st_ino', 'st_dev', 'st_nlink', 'st_uid', 'st_gid', 'st_size', 'st_atime', 'st_mtime', 'st_ctime', 'st_blocks', 'st_blksize', 'st_rdev']:
   try:
    value = getattr(st, attr)
    if (value is None):
     continue
    value = long(value)
    if (value < 0):
     value &= 4294967295
    setattr(response, attr, value)
   except AttributeError:
    pass
 return response

def MakeStatResponse ( st , pathspec ) : response = client . StatEntry ( pathspec = pathspec ) if ( st is None ) : pass else : for attr in [ 'st_mode' , 'st_ino' , 'st_dev' , 'st_nlink' , 'st_uid' , 'st_gid' , 'st_size' , 'st_atime' , 'st_mtime' , 'st_ctime' , 'st_blocks' , 'st_blksize' , 'st_rdev' ] : try : value = getattr ( st , attr ) if ( value is None ) : continue value = long ( value ) if ( value < 0 ) : value &= 4294967295 setattr ( response , attr , value ) except AttributeError : pass return response
creates a statentry .