diff options
Diffstat (limited to 'grc/core')
41 files changed, 78 insertions, 531 deletions
diff --git a/grc/core/Config.py b/grc/core/Config.py index 34e3c7e208..0a75ca607e 100644 --- a/grc/core/Config.py +++ b/grc/core/Config.py @@ -1,19 +1,8 @@ """Copyright 2016 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. - -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +SPDX-License-Identifier: GPL-2.0-or-later + """ from __future__ import absolute_import diff --git a/grc/core/Connection.py b/grc/core/Connection.py index 01baaaf8fc..998b09823a 100644 --- a/grc/core/Connection.py +++ b/grc/core/Connection.py @@ -2,19 +2,8 @@ Copyright 2008-2015 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. - -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +SPDX-License-Identifier: GPL-2.0-or-later + """ from __future__ import absolute_import diff --git a/grc/core/Constants.py b/grc/core/Constants.py index 99e6767447..70aff73dd9 100644 --- a/grc/core/Constants.py +++ b/grc/core/Constants.py @@ -2,19 +2,8 @@ Copyright 2008-2016 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. - -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +SPDX-License-Identifier: GPL-2.0-or-later + """ from __future__ import absolute_import diff --git a/grc/core/FlowGraph.py b/grc/core/FlowGraph.py index aff5f48bc7..21c3cdb59d 100644 --- a/grc/core/FlowGraph.py +++ b/grc/core/FlowGraph.py @@ -1,19 +1,8 @@ # Copyright 2008-2015 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import, print_function diff --git a/grc/core/Messages.py b/grc/core/Messages.py index df7084996d..23902e57e6 100644 --- a/grc/core/Messages.py +++ b/grc/core/Messages.py @@ -1,19 +1,8 @@ # Copyright 2007, 2015 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/base.py b/grc/core/base.py index e5ff657d85..dae9ea229b 100644 --- a/grc/core/base.py +++ b/grc/core/base.py @@ -1,19 +1,8 @@ # Copyright 2008, 2009, 2015, 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# import weakref diff --git a/grc/core/blocks/__init__.py b/grc/core/blocks/__init__.py index 4ca0d5d2bc..61f63fa88f 100644 --- a/grc/core/blocks/__init__.py +++ b/grc/core/blocks/__init__.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/blocks/_build.py b/grc/core/blocks/_build.py index d150dfff4e..f8406f9d6b 100644 --- a/grc/core/blocks/_build.py +++ b/grc/core/blocks/_build.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/blocks/_flags.py b/grc/core/blocks/_flags.py index c85232fceb..ad370c2f37 100644 --- a/grc/core/blocks/_flags.py +++ b/grc/core/blocks/_flags.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/blocks/_templates.py b/grc/core/blocks/_templates.py index 0b15166423..84e9316bcc 100644 --- a/grc/core/blocks/_templates.py +++ b/grc/core/blocks/_templates.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# """ This dict class holds a (shared) cache of compiled mako templates. These diff --git a/grc/core/blocks/block.py b/grc/core/blocks/block.py index 5e46cece9e..ff1c8befc3 100644 --- a/grc/core/blocks/block.py +++ b/grc/core/blocks/block.py @@ -2,19 +2,8 @@ Copyright 2008-2015 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. - -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +SPDX-License-Identifier: GPL-2.0-or-later + """ from __future__ import absolute_import diff --git a/grc/core/blocks/dummy.py b/grc/core/blocks/dummy.py index 596db1993a..202a30ffd3 100644 --- a/grc/core/blocks/dummy.py +++ b/grc/core/blocks/dummy.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/blocks/embedded_python.py b/grc/core/blocks/embedded_python.py index 94b40580c9..fd0cae4049 100644 --- a/grc/core/blocks/embedded_python.py +++ b/grc/core/blocks/embedded_python.py @@ -1,19 +1,8 @@ # Copyright 2015-16 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/blocks/virtual.py b/grc/core/blocks/virtual.py index 209b3ca0e0..a742419d27 100644 --- a/grc/core/blocks/virtual.py +++ b/grc/core/blocks/virtual.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/cache.py b/grc/core/cache.py index a175cce924..f7a130539f 100644 --- a/grc/core/cache.py +++ b/grc/core/cache.py @@ -1,19 +1,8 @@ # Copyright 2017 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import, print_function, unicode_literals diff --git a/grc/core/errors.py b/grc/core/errors.py index 6437cc4fa1..d00aef6a87 100644 --- a/grc/core/errors.py +++ b/grc/core/errors.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import, print_function diff --git a/grc/core/flow_graph.dtd b/grc/core/flow_graph.dtd index bdfe1dc059..eae755c343 100644 --- a/grc/core/flow_graph.dtd +++ b/grc/core/flow_graph.dtd @@ -2,19 +2,8 @@ Copyright 2008 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. +SPDX-License-Identifier: GPL-2.0-or-later -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA --> <!-- flow_graph.dtd diff --git a/grc/core/generator/FlowGraphProxy.py b/grc/core/generator/FlowGraphProxy.py index bf73ee8ff0..da95417b1b 100644 --- a/grc/core/generator/FlowGraphProxy.py +++ b/grc/core/generator/FlowGraphProxy.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py index 135f4538d5..9686ab8f00 100644 --- a/grc/core/generator/Generator.py +++ b/grc/core/generator/Generator.py @@ -1,19 +1,8 @@ # Copyright 2008-2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/generator/__init__.py b/grc/core/generator/__init__.py index 98f410c8d4..b64972a621 100644 --- a/grc/core/generator/__init__.py +++ b/grc/core/generator/__init__.py @@ -1,19 +1,8 @@ # Copyright 2008-2015 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import from .Generator import Generator diff --git a/grc/core/io/__init__.py b/grc/core/io/__init__.py index f77f1a6704..944e1c2abd 100644 --- a/grc/core/io/__init__.py +++ b/grc/core/io/__init__.py @@ -1,16 +1,5 @@ # Copyright 2017 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# diff --git a/grc/core/io/yaml.py b/grc/core/io/yaml.py index 8efbc4865d..4e8ca5e651 100644 --- a/grc/core/io/yaml.py +++ b/grc/core/io/yaml.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 of the License, or (at your -# option) any later version. -# -# GNU Radio Companion 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/params/__init__.py b/grc/core/params/__init__.py index 93663bdada..705d8a32e1 100644 --- a/grc/core/params/__init__.py +++ b/grc/core/params/__init__.py @@ -1,18 +1,7 @@ # Copyright 2017 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from .param import Param diff --git a/grc/core/params/dtypes.py b/grc/core/params/dtypes.py index 85bff46055..b68f93ff73 100644 --- a/grc/core/params/dtypes.py +++ b/grc/core/params/dtypes.py @@ -1,19 +1,8 @@ # Copyright 2008-2017 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/params/param.py b/grc/core/params/param.py index c5b3b8bb1c..816588efe2 100644 --- a/grc/core/params/param.py +++ b/grc/core/params/param.py @@ -1,19 +1,8 @@ # Copyright 2008-2017 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/params/template_arg.py b/grc/core/params/template_arg.py index 5c8c610b4f..d7e02ab8fe 100644 --- a/grc/core/params/template_arg.py +++ b/grc/core/params/template_arg.py @@ -1,19 +1,8 @@ # Copyright 2008-2017 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/platform.py b/grc/core/platform.py index d84500b4f8..af14c11d2b 100644 --- a/grc/core/platform.py +++ b/grc/core/platform.py @@ -1,19 +1,8 @@ # Copyright 2008-2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import, print_function diff --git a/grc/core/ports/__init__.py b/grc/core/ports/__init__.py index 375b5d63e3..5383e70d8f 100644 --- a/grc/core/ports/__init__.py +++ b/grc/core/ports/__init__.py @@ -2,19 +2,8 @@ Copyright 2008-2015 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. +SPDX-License-Identifier: GPL-2.0-or-later -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ from __future__ import absolute_import diff --git a/grc/core/ports/_virtual_connections.py b/grc/core/ports/_virtual_connections.py index 45f4a247fd..02db0058b7 100644 --- a/grc/core/ports/_virtual_connections.py +++ b/grc/core/ports/_virtual_connections.py @@ -1,19 +1,8 @@ # Copyright 2008-2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/ports/clone.py b/grc/core/ports/clone.py index 4e1320f81d..e0eb7f71fb 100644 --- a/grc/core/ports/clone.py +++ b/grc/core/ports/clone.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from .port import Port, Element diff --git a/grc/core/ports/port.py b/grc/core/ports/port.py index c9d38fd9e0..2d2f25d94f 100644 --- a/grc/core/ports/port.py +++ b/grc/core/ports/port.py @@ -1,19 +1,8 @@ # Copyright 2008-2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/schema_checker/validator.py b/grc/core/schema_checker/validator.py index ab4d43bc67..dabc911b50 100644 --- a/grc/core/schema_checker/validator.py +++ b/grc/core/schema_checker/validator.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 of the License, or (at your -# option) any later version. -# -# GNU Radio Companion 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import print_function diff --git a/grc/core/utils/__init__.py b/grc/core/utils/__init__.py index f2ac986fb4..00002ed958 100644 --- a/grc/core/utils/__init__.py +++ b/grc/core/utils/__init__.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/utils/backports/__init__.py b/grc/core/utils/backports/__init__.py index a24ee3ae01..53f54f30b1 100644 --- a/grc/core/utils/backports/__init__.py +++ b/grc/core/utils/backports/__init__.py @@ -2,20 +2,8 @@ # # This file is part of GNU Radio # -# GNU Radio 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, or (at your option) -# any later version. +# SPDX-License-Identifier: GPL-3.0-or-later # -# GNU Radio 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 GNU Radio; see the file COPYING. If not, write to -# the Free Software Foundation, Inc., 51 Franklin Street, -# Boston, MA 02110-1301, USA. from __future__ import absolute_import diff --git a/grc/core/utils/backports/shlex.py b/grc/core/utils/backports/shlex.py index 6b620fa396..a4f32ded80 100644 --- a/grc/core/utils/backports/shlex.py +++ b/grc/core/utils/backports/shlex.py @@ -2,20 +2,8 @@ # # This file is part of GNU Radio # -# GNU Radio 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, or (at your option) -# any later version. +# SPDX-License-Identifier: GPL-3.0-or-later # -# GNU Radio 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 GNU Radio; see the file COPYING. If not, write to -# the Free Software Foundation, Inc., 51 Franklin Street, -# Boston, MA 02110-1301, USA. from __future__ import absolute_import diff --git a/grc/core/utils/descriptors/__init__.py b/grc/core/utils/descriptors/__init__.py index 80c5259230..a80a3dec53 100644 --- a/grc/core/utils/descriptors/__init__.py +++ b/grc/core/utils/descriptors/__init__.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from ._lazy import lazy_property, nop_write diff --git a/grc/core/utils/descriptors/_lazy.py b/grc/core/utils/descriptors/_lazy.py index a0cb126932..05d1bd9652 100644 --- a/grc/core/utils/descriptors/_lazy.py +++ b/grc/core/utils/descriptors/_lazy.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# import functools diff --git a/grc/core/utils/descriptors/evaluated.py b/grc/core/utils/descriptors/evaluated.py index 4f576820eb..04925116fb 100644 --- a/grc/core/utils/descriptors/evaluated.py +++ b/grc/core/utils/descriptors/evaluated.py @@ -1,19 +1,8 @@ # Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# from __future__ import absolute_import diff --git a/grc/core/utils/expr_utils.py b/grc/core/utils/expr_utils.py index 427585e93c..d4c8a1eb29 100644 --- a/grc/core/utils/expr_utils.py +++ b/grc/core/utils/expr_utils.py @@ -2,19 +2,8 @@ Copyright 2008-2011 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. - -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +SPDX-License-Identifier: GPL-2.0-or-later + """ from __future__ import absolute_import, print_function diff --git a/grc/core/utils/extract_docs.py b/grc/core/utils/extract_docs.py index 606ec690f6..2be49e7320 100644 --- a/grc/core/utils/extract_docs.py +++ b/grc/core/utils/extract_docs.py @@ -2,19 +2,8 @@ Copyright 2008-2015 Free Software Foundation, Inc. This file is part of GNU Radio -GNU Radio Companion 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 2 -of the License, or (at your option) any later version. - -GNU Radio Companion 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, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +SPDX-License-Identifier: GPL-2.0-or-later + """ from __future__ import absolute_import, print_function diff --git a/grc/core/utils/hide_bokeh_gui_options_if_not_installed.py b/grc/core/utils/hide_bokeh_gui_options_if_not_installed.py index ab4a42b2e7..2feff18b57 100644 --- a/grc/core/utils/hide_bokeh_gui_options_if_not_installed.py +++ b/grc/core/utils/hide_bokeh_gui_options_if_not_installed.py @@ -1,19 +1,8 @@ # Copyright 2008-2017 Free Software Foundation, Inc. # This file is part of GNU Radio # -# GNU Radio Companion 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 2 -# of the License, or (at your option) any later version. -# -# GNU Radio Companion 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# SPDX-License-Identifier: GPL-2.0-or-later +# def hide_bokeh_gui_options_if_not_installed(options_blk): |