aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasil Velichkov <vvvelichkov@gmail.com>2019-09-27 01:53:43 +0300
committerPiotr Krysik <ptrkrysik@gmail.com>2020-02-14 15:14:59 +0000
commit9b93f991b51b042a890df418946fdafe86c126ec (patch)
treea6a7547a766e2452481d78ba6ef37a0dca9161c0
parent14d7ab1405ad99d7d4fa0802ada4d89e605cc563 (diff)
Print the error message on stderr in a python2 compatible way
-rwxr-xr-xapps/grgsm_decode2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/grgsm_decode b/apps/grgsm_decode
index d754fc7..000440f 100755
--- a/apps/grgsm_decode
+++ b/apps/grgsm_decode
@@ -369,7 +369,7 @@ if __name__ == '__main__':
parser.error("Invalid A5 version\n")
if options.cfile and (options.fc is None and options.arfcn is None):
- print("You haven't provided a frequency or an ARFCN - working without automatic frequency offset correction.\n", file=sys.stderr)
+ sys.stderr.write("You haven't provided a frequency or an ARFCN - working without automatic frequency offset correction.\n")
# handle frequency / arfcn input
arfcn = None