1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

Better way of getting locale's encoding

This commit is contained in:
dmiller
2014-12-09 15:27:26 +00:00
parent f10513b154
commit e81f9fba12

View File

@@ -624,7 +624,7 @@ in epoch format!")
def get_formatted_date(self):
return time.strftime("%B %d, %Y - %H:%M", self.get_date()).decode(
locale.getlocale()[1])
locale.getpreferredencoding())
def get_scanner(self):
return self.nmap['nmaprun'].get('scanner', '')