chiark / gitweb /
make-secnet-sites: OpBase.read_in: save read lines
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Dec 2019 16:33:52 +0000 (16:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:53 +0000 (21:56 +0000)
We are going to use this for a new filtering mode.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
make-secnet-sites

index 4977524..93bfc10 100755 (executable)
@@ -295,9 +295,9 @@ class OpBase():
        # And writing a sites file to self.sitesfile.
        def read_in(self):
                if self.inputfile is None:
-                       pfile("stdin",sys.stdin.readlines())
+                       self.inputlines = pfile("stdin",sys.stdin.readlines())
                else:
-                       pfilepath(self.inputfile)
+                       self.inputlines = pfilepath(self.inputfile)
        def write_out(self):
                f=open(self.sitesfile+"-tmp",'w')
                f.write("# sites file autogenerated by make-secnet-sites\n")