diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-06 03:56:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-06 03:56:37 +0000 |
commit | ebb455b99a665d87fa1f2db97d9db4df39e43d42 (patch) | |
tree | 30afaeac2cb058ac1ab4b83e515f14dd95099577 | |
parent | f10ccaba75452da0e236b2d631cdef05c67e2350 (diff) | |
download | portage-ebb455b99a665d87fa1f2db97d9db4df39e43d42.tar.gz portage-ebb455b99a665d87fa1f2db97d9db4df39e43d42.tar.bz2 portage-ebb455b99a665d87fa1f2db97d9db4df39e43d42.zip |
whitespace cleanup
svn path=/main/trunk/; revision=12766
-rw-r--r-- | pym/portage/news.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pym/portage/news.py b/pym/portage/news.py index b20fd422e..750df3dd6 100644 --- a/pym/portage/news.py +++ b/pym/portage/news.py @@ -148,10 +148,10 @@ class NewsManager(object): If update is specified, updateNewsItems( repoid ) will be called to check for new items. """ - + if update: self.updateItems(repoid) - + unread_filename = self._unread_filename(repoid) unread_lock = None try: @@ -182,9 +182,9 @@ class NewsItem(object): Creation of a news item involves passing in the path to the particular news item. """ - + def __init__(self, path, name): - """ + """ For a given news item we only want if it path is a file. """ self.path = path @@ -206,7 +206,7 @@ class NewsItem(object): if not len(self.restrictions): return True # no restrictions to match means everyone should see it - + kwargs = \ { 'vardb' : vardb, 'config' : config, @@ -215,7 +215,7 @@ class NewsItem(object): for restriction in self.restrictions: if restriction.checkRestriction(**kwargs): return True - + return False # No restrictions were met; thus we aren't relevant :( def isValid(self): @@ -301,7 +301,7 @@ class DisplayInstalledRestriction(DisplayRestriction): An Installation restriction where a particular item shall only be displayed if the user has that item installed. """ - + def __init__(self, atom): self.atom = atom |