summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-09-13 17:38:40 +0000
committerZac Medico <zmedico@gentoo.org>2008-09-13 17:38:40 +0000
commite326938a1621e63506a0ea12f761781d84641837 (patch)
tree8f6c85e74bb21b07f3a72c90d1637fb49f7007ed
parent3c59a39056452c2592478f41929e0bab493b68d4 (diff)
downloadportage-e326938a1621e63506a0ea12f761781d84641837.tar.gz
portage-e326938a1621e63506a0ea12f761781d84641837.tar.bz2
portage-e326938a1621e63506a0ea12f761781d84641837.zip
Define __all__ and remove unused imports found by pyflakes.
svn path=/main/trunk/; revision=11509
-rw-r--r--pym/portage/news.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pym/portage/news.py b/pym/portage/news.py
index dd90f40d3..203ce3fec 100644
--- a/pym/portage/news.py
+++ b/pym/portage/news.py
@@ -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):
"""