added global_settings.is_py2

This commit is contained in:
ilvalle
2016-07-06 17:25:26 +02:00
parent 5e94c11e40
commit 967b2e27a7
4 changed files with 7 additions and 11 deletions
+2 -4
View File
@@ -21,7 +21,7 @@ import base64
from gluon import sanitizer, decoder
import itertools
from gluon._compat import reduce, pickle, copyreg, HTMLParser, name2codepoint, iteritems, unichr, unicodeT, urllib_quote, to_bytes, \
to_native, to_unicode, _local_html_escape, basestring, urlencode
to_native, to_unicode, _local_html_escape, basestring, urlencode, implements_bool
import marshal
from gluon.storage import Storage
@@ -671,7 +671,7 @@ def XML_pickle(data):
return XML_unpickle, (marshal.dumps(str(data)),)
copyreg.pickle(XML, XML_pickle, XML_unpickle)
@implements_bool
class DIV(XmlComponent):
"""
HTML helper, for easy generating and manipulating a DOM structure.
@@ -824,8 +824,6 @@ class DIV(XmlComponent):
"""
return True
__nonzero__ = __bool__
def _fixup(self):
"""
Handling of provided components.