File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1010import sys
1111import time
1212import getopt
13- import requests
14- import logging
1513import socket
1614import json
17- import websocket
1815import threading
1916from datetime import datetime
2017import base64
2118import zlib
19+ import requests
20+ import websocket
2221
2322# Global Default Variables
2423app_id = '256'
@@ -125,14 +124,14 @@ def process_mrn_update(self, message_json):
125124 # The multiple fragments news are not completed, waiting.
126125 if tot_size != len (fragment ):
127126 return None
128- # The multiple fragments news are completed, delete assoiclate GUID envelop
127+ # The multiple fragments news are completed, delete associate GUID envelop
129128 elif tot_size == len (fragment ):
130129 del _news_envelopes [guid_index ]
131130 else :
132131 print (f'Error: Cannot find fragment for GUID { guid } with matching FRAG_NUM or MRN_SRC { mrn_src } ' )
133132 return None
134133 else : # FRAG_NUM = 1 The first fragment
135- tot_size = int (fields_data [" TOT_SIZE" ])
134+ tot_size = int (fields_data [' TOT_SIZE' ])
136135 print (f'FRAGMENT length = { len (fragment )} ' )
137136 # The fragment news is not completed, waiting and add this news data to envelop object.
138137 if tot_size != len (fragment ):
You can’t perform that action at this time.
0 commit comments