>From 3e44e3bb0c1a91faa5b31b257c9f32fb752f8c2d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 29 Jul 2022 16:41:28 +0200 Subject: [PATCH 2/5] gnulib-tool.py: Modernize the file headers. * pygnulib/*.py: Remove '#!/usr/bin/python' (not needed) and 'encoding: UTF-8' lines (default in Python 3). Add copyright notice. --- ChangeLog | 4 ++++ pygnulib/GLConfig.py | 16 ++++++++++++++-- pygnulib/GLEmiter.py | 16 ++++++++++++++-- pygnulib/GLError.py | 16 ++++++++++++++-- pygnulib/GLFileSystem.py | 16 ++++++++++++++-- pygnulib/GLImport.py | 16 ++++++++++++++-- pygnulib/GLInfo.py | 16 ++++++++++++++-- pygnulib/GLMakefileTable.py | 16 ++++++++++++++-- pygnulib/GLModuleSystem.py | 16 ++++++++++++++-- pygnulib/GLTestDir.py | 16 ++++++++++++++-- pygnulib/__init__.py | 17 ++++++++++++++++- pygnulib/classes.py | 16 ++++++++++++++-- pygnulib/constants.py | 16 ++++++++++++++-- 13 files changed, 174 insertions(+), 23 deletions(-) diff --git a/ChangeLog b/ChangeLog index 20cf23f499..01c73c251f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2022-07-29 Bruno Haible + gnulib-tool.py: Modernize the file headers. + * pygnulib/*.py: Remove '#!/usr/bin/python' (not needed) and + 'encoding: UTF-8' lines (default in Python 3). Add copyright notice. + gnulib-tool.py: Use mainstream coding style. * gnulib-tool.py: Clarify the coding style. Fix some pycodestyle warnings. diff --git a/pygnulib/GLConfig.py b/pygnulib/GLConfig.py index fe219a36f6..aea34720de 100644 --- a/pygnulib/GLConfig.py +++ b/pygnulib/GLConfig.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLEmiter.py b/pygnulib/GLEmiter.py index 3009214c9d..261d94ec88 100644 --- a/pygnulib/GLEmiter.py +++ b/pygnulib/GLEmiter.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLError.py b/pygnulib/GLError.py index 0727e2f38f..93604999d6 100644 --- a/pygnulib/GLError.py +++ b/pygnulib/GLError.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLFileSystem.py b/pygnulib/GLFileSystem.py index d5e253f965..1edd6d7776 100644 --- a/pygnulib/GLFileSystem.py +++ b/pygnulib/GLFileSystem.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 3acf94c463..61f700b8c5 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLInfo.py b/pygnulib/GLInfo.py index 46f1dcc2d8..b3cc59dc07 100644 --- a/pygnulib/GLInfo.py +++ b/pygnulib/GLInfo.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLMakefileTable.py b/pygnulib/GLMakefileTable.py index 1e848395d0..00050b2723 100644 --- a/pygnulib/GLMakefileTable.py +++ b/pygnulib/GLMakefileTable.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLModuleSystem.py b/pygnulib/GLModuleSystem.py index 11ff4c7963..01e7188c74 100644 --- a/pygnulib/GLModuleSystem.py +++ b/pygnulib/GLModuleSystem.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index fded6d7656..c0657acc0d 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . #=============================================================================== # Define global imports diff --git a/pygnulib/__init__.py b/pygnulib/__init__.py index 129061be6a..5e916b2e2b 100644 --- a/pygnulib/__init__.py +++ b/pygnulib/__init__.py @@ -1,3 +1,18 @@ +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . + '''Gnulib - The GNU Portability Library GNU software has a well-deserved reputation for running on many different types of systems. While our primary goal is to write software for the GNU system, many @@ -15,6 +30,6 @@ coding standards, the GNU maintainer information, the GPL and other licenses (in Texinfo), assorted configuration scripts, and more. The goal is to provide all the common infrastructure needed by GNU packages.''' -__copyright__ = '2012-2017 Free Software Foundation, Inc.' +__copyright__ = '2012-2022 Free Software Foundation, Inc.' __author__ = 'Dmitriy Selyutin' __license__ = 'GNU GPLv3+' diff --git a/pygnulib/classes.py b/pygnulib/classes.py index 9e8a65851a..575e0b08c3 100644 --- a/pygnulib/classes.py +++ b/pygnulib/classes.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . '''An easy access to pygnulib classes.''' diff --git a/pygnulib/constants.py b/pygnulib/constants.py index 7b37a5241c..f36a9e0a7d 100644 --- a/pygnulib/constants.py +++ b/pygnulib/constants.py @@ -1,5 +1,17 @@ -#!/usr/bin/python -# encoding: UTF-8 +# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# +# 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 . '''An easy access to pygnulib constants.''' -- 2.34.1