From f90ee3aeba6257890433efc22c154d6d7792fc8e Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Thu, 17 Feb 2022 10:10:32 -0500 Subject: Remove dead python2 code Signed-off-by: Matthew Peveler --- asciidoc/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/asciidoc/utils.py b/asciidoc/utils.py index 2891d7f..bca35cf 100644 --- a/asciidoc/utils.py +++ b/asciidoc/utils.py @@ -1,4 +1,3 @@ -import locale import ast import math import os @@ -178,11 +177,6 @@ def date_time_str(t: float) -> Tuple[str, str]: time_str += ' ' + time.tzname[1] else: time_str += ' ' + time.tzname[0] - # Attempt to convert the localtime to the output encoding. - try: - time_str = time_str.decode(locale.getdefaultlocale()[1]) - except Exception: - pass return date_str, time_str -- cgit v1.2.1