From 3cecf9268b15bb0e9e2fedaeb2528bd3038beee6 Mon Sep 17 00:00:00 2001 From: Josh Morman <jmorman@gnuradio.org> Date: Wed, 24 Nov 2021 12:25:09 -0500 Subject: digital: pep8 formatting Signed-off-by: Josh Morman <jmorman@gnuradio.org> --- gr-digital/python/digital/utils/mod_codes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gr-digital/python/digital/utils/mod_codes.py') diff --git a/gr-digital/python/digital/utils/mod_codes.py b/gr-digital/python/digital/utils/mod_codes.py index bafb85e18b..f0ac9f1fb5 100644 --- a/gr-digital/python/digital/utils/mod_codes.py +++ b/gr-digital/python/digital/utils/mod_codes.py @@ -1,12 +1,12 @@ #!/usr/bin/env python # # Copyright 2011 Free Software Foundation, Inc. -# +# # This file is part of GNU Radio -# +# # SPDX-License-Identifier: GPL-3.0-or-later # -# +# # Constants used to represent what coding to use. GRAY_CODE = 'gray' @@ -15,6 +15,7 @@ NO_CODE = 'none' codes = (GRAY_CODE, SET_PARTITION_CODE, NO_CODE) + def invert_code(code): c = enumerate(code) ic = [(b, a) for (a, b) in c] -- cgit v1.2.3