提交 c78c6e98 编写于 作者: B Behdad Esfahbod

Cleanup

上级 ab94a9c5
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
from hb_test_tools import * from hb_test_tools import *
UtilMains.process_multiple_args (Manifest.print_to_stdout, mnemonic="DIR") UtilMains.process_multiple_args (UtilMains.filter_printer_function (Manifest.read), mnemonic="DIR")
...@@ -116,6 +116,14 @@ class ShapeFilters: ...@@ -116,6 +116,14 @@ class ShapeFilters:
class UtilMains: class UtilMains:
@staticmethod
def filter_printer_function (callback):
def printer (f):
for line in callback (f):
print line
return printer
@staticmethod @staticmethod
def process_multiple_files (callback, mnemonic = "FILE"): def process_multiple_files (callback, mnemonic = "FILE"):
...@@ -263,11 +271,6 @@ class Manifest: ...@@ -263,11 +271,6 @@ class Manifest:
else: else:
yield s yield s
@staticmethod
def print_to_stdout (s, strict = True):
for f in Manifest.read (s, strict=strict):
print f
@staticmethod @staticmethod
def update_recursive (s): def update_recursive (s):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册