summaryrefslogtreecommitdiff
path: root/grc/core
diff options
context:
space:
mode:
authordevnulling <devnulling@users.noreply.github.com>2020-01-25 11:22:11 -0800
committerMartin Braun <martin@gnuradio.org>2020-01-27 19:56:21 -0800
commit07741c1e5c7693a2a240bacfc5828f455fe20482 (patch)
tree064576613bf4f4dc6c29c81806a702167494219f /grc/core
parent16396ab7c5f82a3dc76838e3468ba3fe55bbbb0e (diff)
Update license header to SPDX format
Diffstat (limited to 'grc/core')
-rw-r--r--grc/core/Config.py15
-rw-r--r--grc/core/Connection.py15
-rw-r--r--grc/core/Constants.py15
-rw-r--r--grc/core/FlowGraph.py15
-rw-r--r--grc/core/Messages.py15
-rw-r--r--grc/core/base.py15
-rw-r--r--grc/core/blocks/__init__.py15
-rw-r--r--grc/core/blocks/_build.py15
-rw-r--r--grc/core/blocks/_flags.py15
-rw-r--r--grc/core/blocks/_templates.py15
-rw-r--r--grc/core/blocks/block.py15
-rw-r--r--grc/core/blocks/dummy.py15
-rw-r--r--grc/core/blocks/embedded_python.py15
-rw-r--r--grc/core/blocks/virtual.py15
-rw-r--r--grc/core/cache.py15
-rw-r--r--grc/core/errors.py15
-rw-r--r--grc/core/flow_graph.dtd13
-rw-r--r--grc/core/generator/FlowGraphProxy.py15
-rw-r--r--grc/core/generator/Generator.py15
-rw-r--r--grc/core/generator/__init__.py15
-rw-r--r--grc/core/io/__init__.py15
-rw-r--r--grc/core/io/yaml.py15
-rw-r--r--grc/core/params/__init__.py15
-rw-r--r--grc/core/params/dtypes.py15
-rw-r--r--grc/core/params/param.py15
-rw-r--r--grc/core/params/template_arg.py15
-rw-r--r--grc/core/platform.py15
-rw-r--r--grc/core/ports/__init__.py13
-rw-r--r--grc/core/ports/_virtual_connections.py15
-rw-r--r--grc/core/ports/clone.py15
-rw-r--r--grc/core/ports/port.py15
-rw-r--r--grc/core/schema_checker/validator.py15
-rw-r--r--grc/core/utils/__init__.py15
-rw-r--r--grc/core/utils/backports/__init__.py14
-rw-r--r--grc/core/utils/backports/shlex.py14
-rw-r--r--grc/core/utils/descriptors/__init__.py15
-rw-r--r--grc/core/utils/descriptors/_lazy.py15
-rw-r--r--grc/core/utils/descriptors/evaluated.py15
-rw-r--r--grc/core/utils/expr_utils.py15
-rw-r--r--grc/core/utils/extract_docs.py15
-rw-r--r--grc/core/utils/hide_bokeh_gui_options_if_not_installed.py15
41 files changed, 78 insertions, 531 deletions
diff --git a/grc/core/Config.py b/grc/core/Config.py
index 34e3c7e20..0a75ca607 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 01baaaf8f..998b09823 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 99e676744..70aff73dd 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 aff5f48bc..21c3cdb59 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 df7084996..23902e57e 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 e5ff657d8..dae9ea229 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 4ca0d5d2b..61f63fa88 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 d150dfff4..f8406f9d6 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 c85232fce..ad370c2f3 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 0b1516642..84e9316bc 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 5e46cece9..ff1c8befc 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 596db1993..202a30ffd 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 94b40580c..fd0cae404 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 209b3ca0e..a742419d2 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 a175cce92..f7a130539 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 6437cc4fa..d00aef6a8 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 bdfe1dc05..eae755c34 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 bf73ee8ff..da95417b1 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 135f4538d..9686ab8f0 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 98f410c8d..b64972a62 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 f77f1a670..944e1c2ab 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 8efbc4865..4e8ca5e65 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 93663bdad..705d8a32e 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 85bff4605..b68f93ff7 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 c5b3b8bb1..816588efe 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 5c8c610b4..d7e02ab8f 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 d84500b4f..af14c11d2 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 375b5d63e..5383e70d8 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 45f4a247f..02db0058b 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 4e1320f81..e0eb7f71f 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 c9d38fd9e..2d2f25d94 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 ab4d43bc6..dabc911b5 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 f2ac986fb..00002ed95 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 a24ee3ae0..53f54f30b 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 6b620fa39..a4f32ded8 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 80c525923..a80a3dec5 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 a0cb12693..05d1bd965 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 4f576820e..04925116f 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 427585e93..d4c8a1eb2 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 606ec690f..2be49e732 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 ab4a42b2e..2feff18b5 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):