mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Change the following to replace Python 2 code with Python 3:
1) Replace the deprecated unit test method. 2) Wraps filter usage in a list call. 3) Converts the old metaclass syntax to new. 4) Use range instead of xrange method. 5) Change Unicode to str. 6) Several other transformations. 7) Fixed change password test cases. 8) Use simplejson instead of plain JSON.
This commit is contained in:
committed by
Akshay Joshi
parent
11d5613866
commit
5a253f9053
@@ -1269,7 +1269,7 @@ def messages(trans_id):
|
||||
# From the above message we need to find out port number
|
||||
# as "7" so below logic will find 7 as port number
|
||||
# and attach listened to that port number
|
||||
tmp_list = list(filter(lambda x: 'PLDBGBREAK' in x, notify))
|
||||
tmp_list = [x for x in notify if 'PLDBGBREAK' in x]
|
||||
if len(tmp_list) > 0:
|
||||
port_number = re.search(r'\d+', tmp_list[0])
|
||||
if port_number is not None:
|
||||
|
||||
Reference in New Issue
Block a user