Print the error message on stderr in a python2 compatible way

Change-Id: Iaea1510b02a2df924ef9777d107d22c45cb37d12
This commit is contained in:
Vasil Velichkov 2019-09-27 01:53:43 +03:00 committed by Piotr Krysik
parent cc8d86320e
commit dfcf7fd5a3
1 changed files with 1 additions and 1 deletions

View File

@ -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