whoops, cut/paste from email resulted in weird EOL characters
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 27 Mar 2019 12:34:44 +0000 (12:34 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 27 Mar 2019 12:34:44 +0000 (12:34 +0000)
src/add/singlepipe.py

index ff7f3ef3f2795b1cc7a6ca701da949571b35bcca..a3e1020c2733c62167cdfe65faa49d335a46cc36 100644 (file)
@@ -309,15 +309,15 @@ class Stage(metaclass=ABCMeta):
 class RecordBasedStage(Stage):
     """ convenience class which provides a Records-based layout.
     """
-   def __init__(self, in_shape, out_shape, processfn, setupfn=None):
-      self.in_shape = in_shape
-      self.out_shape = out_shape
-      self.__process = processfn
-      self.__setup = setupfn
-   def ispec(self): return Record(self.in_shape)
-   def ospec(self): return Record(self.out_shape)
-   def process(seif, i): return self.__process(i)
-   def setup(seif, m, i): return self.__setup(m, i)
+    def __init__(self, in_shape, out_shape, processfn, setupfn=None):
+        self.in_shape = in_shape
+        self.out_shape = out_shape
+        self.__process = processfn
+        self.__setup = setupfn
+    def ispec(self): return Record(self.in_shape)
+    def ospec(self): return Record(self.out_shape)
+    def process(seif, i): return self.__process(i)
+    def setup(seif, m, i): return self.__setup(m, i)
 
 
 class StageChain(StageCls):