mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Better way of getting locale's encoding
This commit is contained in:
@@ -624,7 +624,7 @@ in epoch format!")
|
|||||||
|
|
||||||
def get_formatted_date(self):
|
def get_formatted_date(self):
|
||||||
return time.strftime("%B %d, %Y - %H:%M", self.get_date()).decode(
|
return time.strftime("%B %d, %Y - %H:%M", self.get_date()).decode(
|
||||||
locale.getlocale()[1])
|
locale.getpreferredencoding())
|
||||||
|
|
||||||
def get_scanner(self):
|
def get_scanner(self):
|
||||||
return self.nmap['nmaprun'].get('scanner', '')
|
return self.nmap['nmaprun'].get('scanner', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user