From: Behdad Esfahbod Date: Sun, 22 Jan 2012 00:55:16 +0000 (-0500) Subject: Cleanup X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c78c6e9844a23144ce7fa29afbf57b74587bfcd0;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Cleanup --- diff --git a/test/shaping/hb-manifest-read b/test/shaping/hb-manifest-read index bfca2c0..754e491 100755 --- a/test/shaping/hb-manifest-read +++ b/test/shaping/hb-manifest-read @@ -2,4 +2,4 @@ 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") diff --git a/test/shaping/hb_test_tools.py b/test/shaping/hb_test_tools.py index 7ff7a02..d53aa4a 100644 --- a/test/shaping/hb_test_tools.py +++ b/test/shaping/hb_test_tools.py @@ -117,6 +117,14 @@ class ShapeFilters: class UtilMains: @staticmethod + def filter_printer_function (callback): + def printer (f): + for line in callback (f): + print line + return printer + + + @staticmethod def process_multiple_files (callback, mnemonic = "FILE"): if len (sys.argv) == 1: @@ -264,11 +272,6 @@ class Manifest: yield s @staticmethod - def print_to_stdout (s, strict = True): - for f in Manifest.read (s, strict=strict): - print f - - @staticmethod def update_recursive (s): for dirpath, dirnames, filenames in os.walk (s, followlinks=True):