mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
python3 updates
This commit is contained in:
@ -93,7 +93,7 @@ def formatCef(logentry):
|
||||
# 'out' 'outcome' request, rt
|
||||
|
||||
cefList = []
|
||||
for key in cefExtensions.keys():
|
||||
for key in list(cefExtensions.keys()):
|
||||
value = str(cefExtensions[key]).replace(' ', r'\ ')
|
||||
cefList.append(key+"="+value)
|
||||
cefExtension = ' '.join(cefList)
|
||||
|
||||
@ -10,7 +10,7 @@ def durationHuman(seconds):
|
||||
"""
|
||||
Turn number of seconds into human readable string
|
||||
"""
|
||||
seconds = long(round(seconds))
|
||||
seconds = int(round(seconds))
|
||||
minutes, seconds = divmod(seconds, 60)
|
||||
hours, minutes = divmod(minutes, 60)
|
||||
days, hours = divmod(hours, 24)
|
||||
|
||||
Reference in New Issue
Block a user