Define __all__ and remove unused imports found by pyflakes.
authorZac Medico <zmedico@gentoo.org>
Sat, 13 Sep 2008 17:38:40 +0000 (17:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 13 Sep 2008 17:38:40 +0000 (17:38 -0000)
svn path=/main/trunk/; revision=11509

pym/portage/news.py

index dd90f40d30350c1aaee3b45861bfc169f5469803..203ce3fec61c6183e2ac1c041ce4ad5e8710046b 100644 (file)
@@ -3,14 +3,17 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
+__all__ = ["NewsManager", "NewsItem", "DisplayRestriction",
+       "DisplayProfileRestriction", "DisplayKeywordRestriction",
+       "DisplayInstalledRestriction"]
+
 import errno
 import os
 import re
-from portage.const import INCREMENTALS, PROFILE_PATH, NEWS_LIB_PATH
 from portage.util import ensure_dirs, apply_permissions, normalize_path, grabfile, write_atomic
 from portage.data import portage_gid
-from portage.locks import lockfile, unlockfile, lockdir, unlockdir
-from portage.exception import FileNotFound, OperationNotPermitted
+from portage.locks import lockfile, unlockfile
+from portage.exception import OperationNotPermitted
 
 class NewsManager(object):
        """