OpenQuizz
Une application de gestion des contenus pédagogiques
flask._compat Namespace Reference

Data Structures

class  _DeprecatedBool
 
class  _Mgr
 

Functions

def reraise (tp, value, tb=None)
 
def implements_to_string (cls)
 
def with_metaclass (meta, *bases)
 
def fspath (path)
 

Variables

int PY2 = 2
 
 text_type = unicode
 
tuple string_types = (str, unicode)
 
tuple integer_types = (int, long)
 
 iterkeys = lambda d: iter(d.keys())
 
 itervalues = lambda d: iter(d.values())
 
 iteritems = lambda d: iter(d.items())
 
 implements_to_string = _identity
 
bool BROKEN_PYPY_CTXMGR_EXIT = False
 
 json_available = _DeprecatedBool("flask.json_available", "2.0.0", True)
 

Function Documentation

◆ fspath()

def flask._compat.fspath (   path)

◆ implements_to_string()

def flask._compat.implements_to_string (   cls)

◆ reraise()

def flask._compat.reraise (   tp,
  value,
  tb = None 
)

◆ with_metaclass()

def flask._compat.with_metaclass (   meta,
bases 
)
Create a base class with a metaclass.

Variable Documentation

◆ BROKEN_PYPY_CTXMGR_EXIT

bool BROKEN_PYPY_CTXMGR_EXIT = False

◆ implements_to_string

implements_to_string = _identity

◆ integer_types

tuple integer_types = (int, long)

◆ iteritems

iteritems = lambda d: iter(d.items())

◆ iterkeys

iterkeys = lambda d: iter(d.keys())

◆ itervalues

itervalues = lambda d: iter(d.values())

◆ json_available

json_available = _DeprecatedBool("flask.json_available", "2.0.0", True)

◆ PY2

int PY2 = 2

◆ string_types

tuple string_types = (str, unicode)

◆ text_type

text_type = unicode