Make iter_external_rdefs function private
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 10 Apr 2017 16:11:08 +0200
changeset 2614 964d1e0db292
parent 2613 71f04ef316cb
child 2615 457b1133267d
Make iter_external_rdefs function private this is not part of the seda cube API.
cubicweb_seda/__init__.py
--- a/cubicweb_seda/__init__.py	Tue Apr 11 15:19:39 2017 +0200
+++ b/cubicweb_seda/__init__.py	Mon Apr 10 16:11:08 2017 +0200
@@ -32,7 +32,7 @@
                          skipetypes=GRAPH_SKIP_ETYPES, skiprtypes=GRAPH_SKIP_RTYPES).items()
 
 
-def iter_external_rdefs(eschema, skip_rtypes=skip_rtypes_set(['container'])):
+def _iter_external_rdefs(eschema, skip_rtypes=skip_rtypes_set(['container'])):
     """Return an iterator on (rdef, role) of external relations from entity schema (i.e.
     non-composite relations).
     """
@@ -67,5 +67,5 @@
                 if target not in visited:
                     visited.add(target)
                     stack.append(target)
-        for rdef, role in iter_external_rdefs(schema[etype]):
+        for rdef, role in _iter_external_rdefs(schema[etype]):
             yield rdef, role