summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital/utils/mod_codes.py
diff options
context:
space:
mode:
authorJosh Morman <jmorman@gnuradio.org>2021-11-24 12:25:09 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-11-24 14:41:53 -0500
commit3cecf9268b15bb0e9e2fedaeb2528bd3038beee6 (patch)
treeba0bb14fa03664b4e69e0dcb944b96ae298264d8 /gr-digital/python/digital/utils/mod_codes.py
parent310b7f0cc25edf90c0bc6754031d763119b0ae97 (diff)
digital: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-digital/python/digital/utils/mod_codes.py')
-rw-r--r--gr-digital/python/digital/utils/mod_codes.py7
1 files changed, 4 insertions, 3 deletions
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]