From 9b93f991b51b042a890df418946fdafe86c126ec Mon Sep 17 00:00:00 2001 From: Vasil Velichkov Date: Fri, 27 Sep 2019 01:53:43 +0300 Subject: Print the error message on stderr in a python2 compatible way Change-Id: Iaea1510b02a2df924ef9777d107d22c45cb37d12 --- apps/grgsm_decode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3