diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-03-12 20:48:24 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-03-13 02:08:29 +0700 |
commit | c08ddc73838b08f9538a966d6ad8f9f8bc856cf9 (patch) | |
tree | ae11d19be6463e94ce5d1878fa32e9d44f009a6c /src/target/fake_trx/clck_gen.py | |
parent | 4ccb2261b1ac2e207303393fe509878f160dd96b (diff) |
fake_trx: unify the GPL license header
There is no need to manually put the license header as a variable
in each application in order to print it. Let's use a common one.
Change-Id: I1a6e8716a9069e7ade3ae15f2c04fd45d18e223c
Diffstat (limited to 'src/target/fake_trx/clck_gen.py')
-rwxr-xr-x | src/target/fake_trx/clck_gen.py | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/target/fake_trx/clck_gen.py b/src/target/fake_trx/clck_gen.py index e7e58a3b..83c0a64d 100755 --- a/src/target/fake_trx/clck_gen.py +++ b/src/target/fake_trx/clck_gen.py @@ -4,7 +4,7 @@ # Virtual Um-interface (fake transceiver) # Simple TDMA frame clock generator # -# (C) 2017 by Vadim Yanitskiy <axilirator@gmail.com> +# (C) 2017-2018 by Vadim Yanitskiy <axilirator@gmail.com> # # All Rights Reserved # @@ -22,6 +22,9 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +from copyright import print_copyright +CR_HOLDERS = [("2017-2018", "Vadim Yanitskiy <axilirator@gmail.com>")] + import signal import time import sys @@ -30,13 +33,6 @@ from threading import Timer from udp_link import UDPLink from gsm_shared import * -COPYRIGHT = \ - "Copyright (C) 2017 by Vadim Yanitskiy <axilirator@gmail.com>\n" \ - "License GPLv2+: GNU GPL version 2 or later " \ - "<http://gnu.org/licenses/gpl.html>\n" \ - "This is free software: you are free to change and redistribute it.\n" \ - "There is NO WARRANTY, to the extent permitted by law.\n" - class CLCKGen: # GSM TDMA definitions SEC_DELAY_US = 1000 * 1000 @@ -99,12 +95,12 @@ class CLCKGen: # Just a wrapper for independent usage class Application: def __init__(self): + # Print copyright + print_copyright(CR_HOLDERS) + # Set up signal handlers signal.signal(signal.SIGINT, self.sig_handler) - # Print copyright - print(COPYRIGHT) - def run(self): self.link = UDPLink("127.0.0.1", 5800, 5700) self.clck = CLCKGen([self.link], ind_period = 51) |