def parse_backup_info_file(content):
 reader = records.RecordsReader(cStringIO.StringIO(content))
 version = reader.read()
 if (version != '1'):
  raise IOError('Unsupported version')
 return (datastore.Entity.FromPb(record) for record in reader)

def parse_backup_info_file ( content ) : reader = records . RecordsReader ( cStringIO . StringIO ( content ) ) version = reader . read ( ) if ( version != '1' ) : raise IOError ( 'Unsupported version' ) return ( datastore . Entity . FromPb ( record ) for record in reader )
returns entities iterator from a backup_info file content .