From da37175cbb862fe9b287af3fe6be18bc2d75d69c Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Mon, 7 Aug 2023 15:35:45 +0200 Subject: [PATCH] frappy/protocol/interface/tcp.py: use SECoP_DEFAULT_PORT import SECoP_DEFAULT_PORT instead of defining DEF_PORT Change-Id: I02ee420d200f90b61f8c79e1cb5ee3e0913955e9 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/31913 Tested-by: Jenkins Automated Tests Reviewed-by: Enrico Faulhaber Reviewed-by: Markus Zolliker --- frappy/protocol/interface/tcp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frappy/protocol/interface/tcp.py b/frappy/protocol/interface/tcp.py index 1a28fd3..cd39ce2 100644 --- a/frappy/protocol/interface/tcp.py +++ b/frappy/protocol/interface/tcp.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # ***************************************************************************** # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software @@ -32,13 +31,12 @@ import time from frappy.datatypes import BoolType, StringType from frappy.errors import SECoPError from frappy.lib import formatException, formatExtendedStack, \ - formatExtendedTraceback + formatExtendedTraceback, SECoP_DEFAULT_PORT from frappy.properties import Property from frappy.protocol.interface import decode_msg, encode_msg_frame, get_msg from frappy.protocol.messages import ERRORPREFIX, HELPREPLY, HELPREQUEST, \ HelpMessage -DEF_PORT = 10767 MESSAGE_READ_SIZE = 1024 HELP = HELPREQUEST.encode() @@ -201,7 +199,7 @@ class TCPServer(DualStackTCPServer): # for cfg-editor configurables = { 'uri': Property('hostname or ip address for binding', StringType(), - default=f'tcp://{DEF_PORT}', export=False), + default=f'tcp://{SECoP_DEFAULT_PORT}', export=False), 'detailed_errors': Property('Flag to enable detailed Errorreporting.', BoolType(), default=False, export=False), }