Adopt an MIT license and clean up the license reference headers.
Chris Pressey
1 year, 3 months ago
0 | Copyright (c) 2024 Chris Pressey, Cat's Eye Technologies | |
1 | ||
2 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
3 | of this software and associated documentation files (the "Software"), to deal | |
4 | in the Software without restriction, including without limitation the rights | |
5 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
6 | copies of the Software, and to permit persons to whom the Software is | |
7 | furnished to do so, subject to the following conditions: | |
8 | ||
9 | The above copyright notice and this permission notice shall be included in all | |
10 | copies or substantial portions of the Software. | |
11 | ||
12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
18 | SOFTWARE. |
0 | <!-- | |
1 | Originally written by Chris Pressey, Cat's Eye Technologies. | |
2 | ||
3 | SPDX-FileCopyrightText: This is free and unencumbered software released into the public domain. | |
4 | For more information, see the file Unlicense.txt in the LICENSES directory. | |
5 | ||
6 | SPDX-License-Identifier: Unlicense | |
7 | --> | |
8 | ||
9 | 0 | T-Rext |
10 | 1 | ====== |
2 | ||
3 | <!-- | |
4 | SPDX-FileCopyrightText: (c) 2024 Chris Pressey, Cat's Eye Technologies | |
5 | This file is distributed under an MIT license. For details, see LICENSES/ dir. | |
6 | SPDX-License-Identifier: LicenseRef-MIT-X-T-Rext | |
7 | --> | |
11 | 8 | |
12 | 9 | T-Rext is a command-line filter that attempts to clean up spacing, |
13 | 10 | punctuation, and capitalization in a text file. Its purpose is so that, |
0 | 0 | #!/usr/bin/env python3 |
1 | 1 | |
2 | # Originally written by Chris Pressey, Cat's Eye Technologies. | |
3 | # | |
4 | # SPDX-FileCopyrightText: This is free and unencumbered software released into the public domain. | |
5 | # For more information, see the file Unlicense.txt in the LICENSES directory. | |
6 | # | |
7 | # SPDX-License-Identifier: Unlicense | |
2 | # SPDX-FileCopyrightText: (c) 2024 Chris Pressey, Cat's Eye Technologies | |
3 | # This file is distributed under an MIT license. For details, see LICENSES/ dir. | |
4 | # SPDX-License-Identifier: LicenseRef-MIT-X-T-Rext | |
8 | 5 | |
9 | 6 | """Usage: t-rext [OPTIONS] FILES |
10 | 7 |
0 | # Originally written by Chris Pressey, Cat's Eye Technologies. | |
1 | # | |
2 | # SPDX-FileCopyrightText: This is free and unencumbered software released into the public domain. | |
3 | # For more information, see the file Unlicense.txt in the LICENSES directory. | |
4 | # | |
5 | # SPDX-License-Identifier: Unlicense | |
0 | # SPDX-FileCopyrightText: (c) 2024 Chris Pressey, Cat's Eye Technologies | |
1 | # This file is distributed under an MIT license. For details, see LICENSES/ dir. | |
2 | # SPDX-License-Identifier: LicenseRef-MIT-X-T-Rext | |
6 | 3 | |
7 | 4 | # encoding: UTF-8 |
8 | 5 | |
9 | 6 | import re |
10 | 7 | |
11 | 8 | |
12 | class Processor(object): | |
9 | class Processor(object): | |
13 | 10 | """An abstract base class that defines the protocol for Processor objects. |
14 | 11 | """ |
15 | 12 |