From 47ca766a9cbdfb304f60e23a4dee0a155075a277 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 20 Jan 2012 14:21:53 -0500 Subject: [PATCH] Minor --- test/shaping/hb-unicode-decode | 2 +- test/shaping/hb-unicode-prettyname | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/shaping/hb-unicode-decode b/test/shaping/hb-unicode-decode index df3d23960..e880f490c 100755 --- a/test/shaping/hb-unicode-decode +++ b/test/shaping/hb-unicode-decode @@ -8,7 +8,7 @@ def decode (s): if __name__ == '__main__': if len (sys.argv) == 1 or ('--stdin' in sys.argv and len (sys.argv) != 2): - print "Usage:\n %s [UNICODE_STRING]...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) + print "Usage:\n %s UNICODE_STRING...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) sys.exit (1) if '--stdin' in sys.argv: diff --git a/test/shaping/hb-unicode-prettyname b/test/shaping/hb-unicode-prettyname index 27d2dee9b..1447fca02 100755 --- a/test/shaping/hb-unicode-prettyname +++ b/test/shaping/hb-unicode-prettyname @@ -34,15 +34,14 @@ def pretty_name (x): def pretty_names (s): - s = re.sub (r"[<+>\\]", "", s) - s = re.sub (r"[uU]", " ", s) + s = re.sub (r"[<+>\\uU]", " ", s) s = [unichr (int (x, 16)) for x in re.split ('[, \n]', s) if len (x)] return ' + '.join (pretty_name (x) for x in s) if __name__ == '__main__': if len (sys.argv) == 1 or ('--stdin' in sys.argv and len (sys.argv) != 2): - print "Usage:\n %s [UNICODE_CODEPOINTS]...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) + print "Usage:\n %s UNICODE_CODEPOINTS...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) sys.exit (1) if '--stdin' in sys.argv: