Fix syntax errors
Sophie Brun
4 years ago
0 | From: Sophie Brun <[email protected]> | |
1 | Date: Tue, 14 Jan 2020 10:53:15 +0100 | |
2 | Subject: Fix syntax error | |
3 | ||
4 | --- | |
5 | data/agent/agent.py | 4 ++-- | |
6 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
7 | ||
8 | diff --git a/data/agent/agent.py b/data/agent/agent.py | |
9 | index 6bff8ac..e2f8832 100644 | |
10 | --- a/data/agent/agent.py | |
11 | +++ b/data/agent/agent.py | |
12 | @@ -201,9 +201,9 @@ def parse_task_packet(packet, offset=0): | |
13 | packetData = packet[12+offset:12+offset+length] | |
14 | remainingData = packet[12+offset+length:] | |
15 | ||
16 | - return (packetType, totalPacket, packetNum, resultID, length, packetData, remainingData) | |
17 | + return (packetType, totalPacket, packetNum, resultID, length, packetData, remainingData) | |
18 | except Exception as e: | |
19 | - print "parse_task_packet exception:",e | |
20 | + print("parse_task_packet exception:",e) | |
21 | return (None, None, None, None, None, None, None) | |
22 | ||
23 |