]> granicus.if.org Git - icu/commitdiff
ICU-20119 Review changes.
authorNorbert Runge <nrunge@google.com>
Tue, 18 Sep 2018 23:44:39 +0000 (16:44 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:40 +0000 (14:27 -0700)
icu4c/source/tools/icu-file-utf8-check.py

index 04ba3074da4a5927a1c0df7e26884e0f21275b30..41b5a7b3f898584091fcf755d544ba5dcba39d98 100755 (executable)
@@ -14,7 +14,7 @@
 #     It only works correctly on platforms where the native line ending is a plain \n
 #
 #  usage:
-#     icu-svnprops-check.py  [options]
+#     icu-file-utf8-check.py  [options]
 #
 #  options:
 #     -h | --help    Print a usage line and exit.
@@ -97,12 +97,8 @@ def main(argv):
             print "Repository file not in working copy: " + f
             continue;
 
-        if source_file_re.match(f):
-            source_file = True
-            check_file(f, source_file);
-        else:
-            source_file = False
-            check_file(f, source_file)
+        source_file = source_file_re.match(f)
+        check_file(f, source_file)
 
 if __name__ == "__main__":
     main(sys.argv[1:])