diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2022-02-17 10:10:32 -0500 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2022-02-17 10:36:02 -0500 |
commit | f90ee3aeba6257890433efc22c154d6d7792fc8e (patch) | |
tree | 47104ca1a3555acadc62267827b470413748c97f | |
parent | 1a9311a48a8b1c6ed23c065319736e91c949b26c (diff) | |
download | asciidoc-py3-f90ee3aeba6257890433efc22c154d6d7792fc8e.tar.gz |
Remove dead python2 code
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r-- | asciidoc/utils.py | 6 |
1 files changed, 0 insertions, 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 |