changeset 4817:9a305dadab7a

Groups2009: pep8 fixes. Minor code refinements.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Wed, 24 Jun 2009 19:36:32 +0200
parents 7d8f51be2285
children 66b7c4fe0265
files MoinMoin/groups/backends/__init__.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/groups/backends/__init__.py	Wed Jun 24 17:56:46 2009 +0200
+++ b/MoinMoin/groups/backends/__init__.py	Wed Jun 24 19:36:32 2009 +0200
@@ -6,11 +6,12 @@
 @license: GPL, see COPYING for details
 """
 
+
 class GroupDoesNotExistError(Exception):
     """
     Raised when a group name is not found in the backend.
     """
-    pass
+
 
 class BaseGroup(object):
 
@@ -136,7 +137,7 @@
         raise NotImplementedError()
 
     def __repr__(self):
-        return "<%s groups=%s>" % (self.__class__, [b for b in self])
+        return "<%s groups=%s>" % (self.__class__, list(self))
 
     def _retrieve_members(self, group_name):
         raise NotImplementedError()