1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-01-02 00:22:25 +01:00
Files
ebook-converter/ebook_converter/utils/monotonic.py
gryf 48fedea799 Removing unneeded from __future__ import statements.
Since we are on Python 3.6 and up, we don't need those anymore.
2020-04-19 17:39:02 +02:00

11 lines
308 B
Python

try:
from time import monotonic
except ImportError:
from ebook_converter.constants import plugins
monotonicp, err = plugins['monotonic']
if err:
raise RuntimeError('Failed to load the monotonic module with error: ' + err)
monotonic = monotonicp.monotonic
del monotonicp, err