mirror of
https://github.com/janeczku/calibre-web
synced 2024-08-31 05:22:45 +00:00
![OzzieIsaacs](/assets/img/avatar_default.png)
Bugfix for feeds - removed categories related and up - load new books now working - category random now working login page is free of non accessible elements boolean custom column is vivible in UI books with only with certain languages can be shown book shelfs can be deleted from UI Anonymous user view is more resticted Added browse of series in sidebar Dependencys in vendor folder are updated to newer versions (licencs files are now present) Bugfix editing Authors names Made upload on windows working
27 lines
565 B
Python
27 lines
565 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
markupsafe._compat
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
Compatibility module for different Python versions.
|
|
|
|
:copyright: (c) 2013 by Armin Ronacher.
|
|
:license: BSD, see LICENSE for more details.
|
|
"""
|
|
import sys
|
|
|
|
PY2 = sys.version_info[0] == 2
|
|
|
|
if not PY2:
|
|
text_type = str
|
|
string_types = (str,)
|
|
unichr = chr
|
|
int_types = (int,)
|
|
iteritems = lambda x: iter(x.items())
|
|
else:
|
|
text_type = unicode
|
|
string_types = (str, unicode)
|
|
unichr = unichr
|
|
int_types = (int, long)
|
|
iteritems = lambda x: x.iteritems()
|