Skip to content

Commit b97b1e4

Browse files
committed
Update code according to Pylint
1 parent 3e7a382 commit b97b1e4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mrn_console_v2.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
import sys
1111
import time
1212
import getopt
13-
import requests
14-
import logging
1513
import socket
1614
import json
17-
import websocket
1815
import threading
1916
from datetime import datetime
2017
import base64
2118
import zlib
19+
import requests
20+
import websocket
2221

2322
# Global Default Variables
2423
app_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):

0 commit comments

Comments
 (0)