summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aptsources/sourceslist.py10
-rw-r--r--debian/changelog2
2 files changed, 11 insertions, 1 deletions
diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py
index 48839d6e..43729246 100644
--- a/aptsources/sourceslist.py
+++ b/aptsources/sourceslist.py
@@ -39,6 +39,9 @@ from .distinfo import DistInfo
# some global helpers
+__all__ = ['is_mirror', 'SourceEntry', 'NullMatcher', 'SourcesList',
+ 'SourceEntryMatcher']
+
def is_mirror(master_uri, compare_uri):
""" check if the given add_url is idential or a mirror of orig_uri
@@ -71,7 +74,12 @@ def is_mirror(master_uri, compare_uri):
def uniq(s):
- """ simple and efficient way to return uniq list """
+ """ simple and efficient way to return uniq collection
+
+ This is not intended for use with a SourceList. It is provided
+ for internal use only. It does not have a leading underscore to
+ not break any old code that uses it; but it should not be used
+ in new code (and is not listed in __all__)."""
return list(set(s))
diff --git a/debian/changelog b/debian/changelog
index ca844f38..1d3bbaa5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ python-apt (0.9.0) UNRELEASED; urgency=low
[ Julian Andres Klode ]
* Completely remove all old-API support code
+ * aptsources/sourceslist.py
+ - Document correct use of uniq and hide it using __all__ (Closes: #723815)
[ Jeremy Bicha ]
* data/templates/Ubuntu.info.in: add 'devel' series (Closes: #722961)