Skip to content

Commit

Permalink
Add license header to files that are missing it
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed May 18, 2024
1 parent 5c2328f commit 2a9935a
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 11 deletions.
28 changes: 24 additions & 4 deletions src/sanescansrv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
"""Sane Scanner Server."""
"""Sane Scanner Server.
Copyright (C) 2022-2024 CoolCat467
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import annotations

__license__ = "GNU General Public License Version 3"

from sanescansrv.server import (
__author__,
__title__,
__version__,
__author__ as __author__,
__title__ as __title__,
__version__ as __version__,
sane_run as run,
)

Expand Down
21 changes: 18 additions & 3 deletions src/sanescansrv/generate_pages.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
"""Generate pages for the sane scanner web server."""
"""Generate pages for the sane scanner web server.
from __future__ import annotations
Copyright (C) 2022-2024 CoolCat467
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
# Programmed by CoolCat467
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import annotations

__title__ = "Generate Pages"
__author__ = "CoolCat467"
__license__ = "GNU General Public License Version 3"


import pathlib
Expand Down
22 changes: 21 additions & 1 deletion src/sanescansrv/htmlgen.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
"""HTML Generation - Generate HTML & CSS programmatically."""
"""HTML Generation - Generate HTML & CSS programmatically.
Copyright (C) 2022-2024 CoolCat467
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import annotations

__title__ = "HTML Generation"
__author__ = "CoolCat467"
__license__ = "GNU General Public License Version 3"

from typing import TYPE_CHECKING, Union

if TYPE_CHECKING: # pragma: nocover
Expand Down
19 changes: 17 additions & 2 deletions src/sanescansrv/logger.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
"""Simple logging to both console and log files."""
"""Simple logging to both console and log files.
# Programmed by CoolCat467
Copyright (C) 2022-2024 CoolCat467
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import annotations

__title__ = "Logging"
__author__ = "CoolCat467"
__license__ = "GNU General Public License Version 3"


import time
Expand Down
2 changes: 1 addition & 1 deletion src/sanescansrv/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
__title__ = "Sane Scanner Webserver"
__author__ = "CoolCat467"
__version__ = "3.1.0"
__license__ = "GPLv3"
__license__ = "GNU General Public License Version 3"


import contextlib
Expand Down

0 comments on commit 2a9935a

Please sign in to comment.