Skip to content

Commit 6c291d2

Browse files
authored
[NFC][UR] Cleanup Python generator scripts (#18006)
* Move copyright notices out of file `__doc__` strings and into comments * Move function `__doc__` strings into functions
1 parent 1f71d16 commit 6c291d2

12 files changed

+198
-462
lines changed

unified-runtime/scripts/add_experimental_feature.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
"""
2-
Copyright (C) 2023 Intel Corporation
3-
4-
Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
5-
See LICENSE.TXT
6-
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7-
8-
"""
1+
# Copyright (C) 2023 Intel Corporation
2+
#
3+
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
4+
# See LICENSE.TXT
5+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
96

107
import argparse
118
import sys
@@ -37,7 +34,6 @@ def get_user_name_email_from_git_config():
3734

3835

3936
def main():
40-
4137
argParser = argparse.ArgumentParser()
4238
argParser.add_argument(
4339
"name", help="must be lowercase and kebab case i.e. command-buffer", type=str

unified-runtime/scripts/ctest_parser.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
#!/usr/bin/env python
2-
"""
3-
Copyright (C) 2022 Intel Corporation
1+
#!/usr/bin/env python3
42

5-
Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
6-
See LICENSE.TXT
7-
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8-
"""
3+
# Copyright (C) 2022 Intel Corporation
4+
#
5+
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
6+
# See LICENSE.TXT
7+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
98

109
from subprocess import Popen, DEVNULL, PIPE
1110
import argparse

0 commit comments

Comments
 (0)