From 1d1f86cb9c4784e57b229cbe37e4eabe71dddea9 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Wed, 24 Aug 2011 14:59:22 +0200 Subject: [PATCH] Docstring --- syncpackage | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncpackage b/syncpackage index 74ad824..dafaf81 100755 --- a/syncpackage +++ b/syncpackage @@ -383,6 +383,10 @@ def copy(src_pkg, release, simulate=False, force=False): 'processed.') def is_blacklisted(query): + """"Determine if package "query" is in the sync blacklist + Returns True or a string of all relevant comments if blacklisted, + False if not + """ url = 'http://people.canonical.com/~ubuntu-archive/sync-blacklist.txt' with codecs.EncodedFile(urllib.urlopen(url), 'UTF-8') as f: applicable_comments = []