def generate_objects_info_packs(repo):
 for pack in repo.object_store.packs:
  (yield (('P ' + pack.data.filename.encode(sys.getfilesystemencoding())) + '\n'))

def generate_objects_info_packs ( repo ) : for pack in repo . object_store . packs : ( yield ( ( 'P ' + pack . data . filename . encode ( sys . getfilesystemencoding ( ) ) ) + '\n' ) )
generate an index for for packs .