Package proton :: Module _compat
[frames] | no frames]

Module _compat

source code

Utilities to help Proton support both python2 and python3.

Functions
 
raise_(t, v=None, tb=None)
Mimic the old 2.x raise behavior: Raise an exception of type t with value v using optional traceback tb
source code
 
iteritems(d, **kw) source code
character
unichr(i)
Return a string of one character with ordinal i; 0 <= i < 256.
Variables
  PY3 = sys.version_info [0]== 3