diff options
Diffstat (limited to 'ACE/bin/PythonACE/fuzz/newline.py')
-rw-r--r-- | ACE/bin/PythonACE/fuzz/newline.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ACE/bin/PythonACE/fuzz/newline.py b/ACE/bin/PythonACE/fuzz/newline.py deleted file mode 100644 index 39847e05c65..00000000000 --- a/ACE/bin/PythonACE/fuzz/newline.py +++ /dev/null @@ -1,17 +0,0 @@ -""" Checks that the file has a newline at the end. """ - -type_list = ["cpp", "h", "inl", "html", "idl", "pl"] - -import re -from sys import stderr - -regex = re.compile ("\n\Z") - -def handler (file_name, file_content): - if regex.search (file_content) == None: - stderr.write (file_name + ":0: error: " + file_name + " lacks a newline at the end of the file.\n") - return 1 - else: - return 0 - - |