From 328fd48b06f75e756a9adb15e2bdf408fba47da3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 8 Oct 2013 20:32:46 +0200 Subject: aptsources/sourceslist.py: Fix uniq docstring and hide it (Closes: #723815) We accidentally exported this and people wrongly assumed that it was intended for SourcesList objects. --- aptsources/sourceslist.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'aptsources') 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)) -- cgit v1.2.3