[PATCH 11 of 14 skos] Drop compat for pre-0.9 API

Denis Laxalde denis.laxalde at logilab.fr
Mon Feb 19 12:28:02 CET 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1519030931 -3600
#      Mon Feb 19 10:02:11 2018 +0100
# Node ID 448195d9bbf226f8df455282b447f83efbe7ff21
# Parent  60f8c89415f9a4efb81b484a94df086ab91c1a8e
Drop compat for pre-0.9 API

Closes #17133734.

diff --git a/sobjects.py b/sobjects.py
--- a/sobjects.py
+++ b/sobjects.py
@@ -29,8 +29,6 @@ from hashlib import md5
 from uuid import uuid4
 from itertools import imap
 
-from logilab.common.deprecation import deprecated
-
 from cubicweb import dataimport
 from cubicweb.dataimport.importer import (
     ExtEntity,
@@ -224,18 +222,3 @@ def import_skos_extentities(cnx, entitie
     store.commit()
     store.finish()
     return res
-
-
- at deprecated('[skos 0.9] use lcsv_extentities then import_skos_extentities instead')
-def _skos_import_lcsv(cnx, stream, import_log, scheme_uri, delimiter,
-                      encoding, language_code=None, **kwargs):
-    """Import SKOS from LCSV stream or URL (by transforming it to RDF first)."""
-    entities = lcsv_extentities(stream, scheme_uri, delimiter, encoding, language_code)
-    return import_skos_extentities(cnx, entities, import_log, extid_as_cwuri=False, **kwargs)
-
-
- at deprecated('[skos 0.9] use rdf_extentities then import_skos_extentities instead')
-def _skos_import_rdf(cnx, stream_or_url, import_log, rdf_format=None, **kwargs):
-    """Import SKOS from RDF stream or URL."""
-    entities = rdf_extentities(stream_or_url, rdf_format)
-    return import_skos_extentities(cnx, entities, import_log, **kwargs)



More information about the saem-devel mailing list