mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-16 23:03:32 +01:00
Initial import
This commit is contained in:
13
ebook_converter/polyglot/functools.py
Normal file
13
ebook_converter/polyglot/functools.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python2
|
||||
# vim:fileencoding=utf-8
|
||||
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||
|
||||
from polyglot.builtins import is_py3
|
||||
if is_py3:
|
||||
from functools import lru_cache
|
||||
else:
|
||||
from backports.functools_lru_cache import lru_cache
|
||||
|
||||
lru_cache
|
||||
Reference in New Issue
Block a user