summaryrefslogtreecommitdiff
path: root/aptsources
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2013-10-08 20:32:46 +0200
committerJulian Andres Klode <jak@debian.org>2013-10-08 20:32:46 +0200
commit328fd48b06f75e756a9adb15e2bdf408fba47da3 (patch)
treef1c000b0226b3b490972f77bab1860d15e65c172 /aptsources
parent637e6987516caed3b61ca025cda3105d0b81bef0 (diff)
downloadpython-apt-328fd48b06f75e756a9adb15e2bdf408fba47da3.tar.gz
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.
Diffstat (limited to 'aptsources')
-rw-r--r--aptsources/sourceslist.py10
1 files changed, 9 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))