mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Make get_formatted_date return a unicode string instead of bytes
This commit is contained in:
parent
9656d30661
commit
f10513b154
1 changed files with 2 additions and 1 deletions
|
|
@ -623,7 +623,8 @@ in epoch format!")
|
|||
return ports
|
||||
|
||||
def get_formatted_date(self):
|
||||
return time.strftime("%B %d, %Y - %H:%M", self.get_date())
|
||||
return time.strftime("%B %d, %Y - %H:%M", self.get_date()).decode(
|
||||
locale.getlocale()[1])
|
||||
|
||||
def get_scanner(self):
|
||||
return self.nmap['nmaprun'].get('scanner', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue