Unwrap several for statements from 2to3 conversion process.
This commit is contained in:
parent
8c318c6d38
commit
f2e800ddf1
22 changed files with 37 additions and 37 deletions
|
|
@ -188,7 +188,7 @@ class PortalSessionHandler(SessionHandler):
|
|||
# we set a watchdog to stop self.disconnect from deleting
|
||||
# sessions while we are looping over them.
|
||||
sessionhandler._disconnect_all = True
|
||||
for session in list(sessionhandler.values()):
|
||||
for session in sessionhandler.values():
|
||||
session.disconnect()
|
||||
del sessionhandler._disconnect_all
|
||||
|
||||
|
|
@ -336,7 +336,7 @@ class PortalSessionHandler(SessionHandler):
|
|||
send command.
|
||||
|
||||
"""
|
||||
for session in list(self.values()):
|
||||
for session in self.values():
|
||||
self.data_out(session, text=[[message], {}])
|
||||
|
||||
def data_in(self, session, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue