running lib2to3.fixes.fix_reduce
This commit is contained in:
@@ -40,6 +40,7 @@ import shutil
|
|||||||
import imp
|
import imp
|
||||||
import logging
|
import logging
|
||||||
import types
|
import types
|
||||||
|
from functools import reduce
|
||||||
logger = logging.getLogger("web2py")
|
logger = logging.getLogger("web2py")
|
||||||
from gluon import rewrite
|
from gluon import rewrite
|
||||||
from custom_import import custom_import_install
|
from custom_import import custom_import_install
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from gluon import URL, IS_SLUG
|
from gluon import URL, IS_SLUG
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
# compliant with https://github.com/collection-json/spec
|
# compliant with https://github.com/collection-json/spec
|
||||||
# also compliant with http://code.ge/media-types/collection-next-json/
|
# also compliant with http://code.ge/media-types/collection-next-json/
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ from gluon.http import HTTP, redirect
|
|||||||
|
|
||||||
#requires M2Crypto
|
#requires M2Crypto
|
||||||
from M2Crypto import X509
|
from M2Crypto import X509
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
|
|
||||||
class X509Auth(object):
|
class X509Auth(object):
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import sanitizer
|
|||||||
import itertools
|
import itertools
|
||||||
import decoder
|
import decoder
|
||||||
import copy_reg
|
import copy_reg
|
||||||
|
from functools import reduce
|
||||||
try:
|
try:
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
except:
|
except:
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import datetime
|
|||||||
import platform
|
import platform
|
||||||
import portalocker
|
import portalocker
|
||||||
import fileutils
|
import fileutils
|
||||||
|
from functools import reduce
|
||||||
try:
|
try:
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
except:
|
except:
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ from gluon import DAL, Field, IS_NOT_EMPTY, IS_IN_SET, IS_NOT_IN_DB
|
|||||||
from gluon import IS_INT_IN_RANGE, IS_DATETIME, IS_IN_DB
|
from gluon import IS_INT_IN_RANGE, IS_DATETIME, IS_IN_DB
|
||||||
from gluon.utils import web2py_uuid
|
from gluon.utils import web2py_uuid
|
||||||
from gluon.storage import Storage
|
from gluon.storage import Storage
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
USAGE = """
|
USAGE = """
|
||||||
## Example
|
## Example
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ from gluon.validators import IS_STRONG
|
|||||||
|
|
||||||
import gluon.serializers as serializers
|
import gluon.serializers as serializers
|
||||||
from gluon.globals import current
|
from gluon.globals import current
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import gluon.settings as settings
|
import gluon.settings as settings
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ Auth, Mail, PluginManager and various utilities
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
from functools import reduce
|
||||||
try:
|
try:
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
except:
|
except:
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import unicodedata
|
|||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
from gluon.utils import simple_hash, web2py_uuid, DIGEST_ALG_BY_SIZE
|
from gluon.utils import simple_hash, web2py_uuid, DIGEST_ALG_BY_SIZE
|
||||||
from pydal.objects import Field, FieldVirtual, FieldMethod
|
from pydal.objects import Field, FieldVirtual, FieldMethod
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
regex_isint = re.compile('^[+-]?\d+$')
|
regex_isint = re.compile('^[+-]?\d+$')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user