From 999a1b6cf6553b44e924eeccd90f243504bab2c1 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 15 Apr 2022 18:04:36 +1000 Subject: Added copyright and licensing notices. --- cli_view.py | 17 +++++++++++++++++ html_view.py | 17 +++++++++++++++++ ptv.py | 17 ++++++++++++++++- ptv_client.py | 21 +++++++++++---------- server.py | 17 +++++++++++++++++ util.py | 17 +++++++++++++++++ 6 files changed, 95 insertions(+), 11 deletions(-) diff --git a/cli_view.py b/cli_view.py index 9c022f9..53e1360 100644 --- a/cli_view.py +++ b/cli_view.py @@ -1,3 +1,20 @@ +# Copyright (C) 2022 Yuchen Pei. +# +# This file is part of ptvtt. +# +# ptvtt is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# ptvtt 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 Affero General +# Public License for more details. + +# You should have received a copy of the GNU Affero General Public +# License along with ptvtt. If not, see . + import util import ptv_client diff --git a/html_view.py b/html_view.py index 98306cb..038b047 100644 --- a/html_view.py +++ b/html_view.py @@ -1,3 +1,20 @@ +# Copyright (C) 2022 Yuchen Pei. +# +# This file is part of ptvtt. +# +# ptvtt is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# ptvtt 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 Affero General +# Public License for more details. + +# You should have received a copy of the GNU Affero General Public +# License along with ptvtt. If not, see . + from urllib import parse import util import ptv_client diff --git a/ptv.py b/ptv.py index d5efc77..7644c92 100755 --- a/ptv.py +++ b/ptv.py @@ -1,4 +1,19 @@ -#!/usr/bin/python +# Copyright (C) 2022 Yuchen Pei. +# +# This file is part of ptvtt. +# +# ptvtt is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# ptvtt 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 Affero General +# Public License for more details. + +# You should have received a copy of the GNU Affero General Public +# License along with ptvtt. If not, see . import ptv_client import cli_view diff --git a/ptv_client.py b/ptv_client.py index ec89134..180399c 100644 --- a/ptv_client.py +++ b/ptv_client.py @@ -1,18 +1,19 @@ # Copyright (C) 2022 Yuchen Pei. # -# ptv.py is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. +# This file is part of ptvtt. +# +# ptvtt is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. -# ptv.py 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 -# Affero General Public License for more details. +# ptvtt 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 Affero General +# Public License for more details. # You should have received a copy of the GNU Affero General Public -# License along with ptv.py. If not, see -# . +# License along with ptvtt. If not, see . from hashlib import sha1 from urllib import request, error, parse diff --git a/server.py b/server.py index 13e5c58..54813dd 100644 --- a/server.py +++ b/server.py @@ -1,3 +1,20 @@ +# Copyright (C) 2022 Yuchen Pei. +# +# This file is part of ptvtt. +# +# ptvtt is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# ptvtt 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 Affero General +# Public License for more details. + +# You should have received a copy of the GNU Affero General Public +# License along with ptvtt. If not, see . + from wsgiref.simple_server import make_server from urllib.parse import parse_qs import ptv_client diff --git a/util.py b/util.py index fe0ff01..bc3f127 100644 --- a/util.py +++ b/util.py @@ -1,3 +1,20 @@ +# Copyright (C) 2022 Yuchen Pei. +# +# This file is part of ptvtt. +# +# ptvtt is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# ptvtt 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 Affero General +# Public License for more details. + +# You should have received a copy of the GNU Affero General Public +# License along with ptvtt. If not, see . + from datetime import datetime, timezone from zoneinfo import ZoneInfo -- cgit v1.2.3