[Checkins] SVN: Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/testing.py pep8
Godefroid Chapelle
gotcha at bubblenet.be
Mon Mar 8 05:51:53 EST 2010
Log message for revision 109818:
pep8
Changed:
U Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/testing.py
-=-
Modified: Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/testing.py
===================================================================
--- Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/testing.py 2010-03-08 10:50:36 UTC (rev 109817)
+++ Sandbox/gotcha/z3c.taskqueue/src/z3c/taskqueue/testing.py 2010-03-08 10:51:52 UTC (rev 109818)
@@ -33,10 +33,10 @@
def __call__(self, service, id, input):
# always raise division by zero
- 1/0
+ 1 / 0
def __repr__(self):
- return '<%s>' %(self.__class__.__name__)
+ return '<%s>' % (self.__class__.__name__)
###############################################################################
@@ -45,6 +45,7 @@
#
###############################################################################
+
class QueueStub(object):
zope.interface.implements(zc.queue.interfaces.IQueue)
@@ -57,9 +58,9 @@
len_self = len(self._data)
index += len_self
if index < 0:
- raise IndexError(index-len_self)
+ raise IndexError(index - len_self)
res = self._data[index]
- self._data = self._data[:index] + self._data[index+1:]
+ self._data = self._data[:index] + self._data[index + 1:]
return res
def put(self, item):
More information about the checkins
mailing list