Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Namespaces | Variables
compat.py File Reference

Namespaces

namespace  pip._vendor.requests.compat
 

Variables

 pip._vendor.requests.compat._ver = sys.version_info
 
tuple pip._vendor.requests.compat.is_py2 = (_ver[0] == 2)
 
tuple pip._vendor.requests.compat.is_py3 = (_ver[0] == 3)
 
tuple pip._vendor.requests.compat.is_py30 = (is_py3 and _ver[1] == 0)
 
tuple pip._vendor.requests.compat.is_py31 = (is_py3 and _ver[1] == 1)
 
tuple pip._vendor.requests.compat.is_py32 = (is_py3 and _ver[1] == 2)
 
tuple pip._vendor.requests.compat.is_py33 = (is_py3 and _ver[1] == 3)
 
tuple pip._vendor.requests.compat.is_py34 = (is_py3 and _ver[1] == 4)
 
tuple pip._vendor.requests.compat.is_py27 = (is_py2 and _ver[1] == 7)
 
tuple pip._vendor.requests.compat.is_py26 = (is_py2 and _ver[1] == 6)
 
tuple pip._vendor.requests.compat.is_py25 = (is_py2 and _ver[1] == 5)
 
tuple pip._vendor.requests.compat.is_py24 = (is_py2 and _ver[1] == 4)
 
tuple pip._vendor.requests.compat.is_pypy = ('pypy' in _ver)
 
tuple pip._vendor.requests.compat.is_jython = ('jython' in _ver)
 
tuple pip._vendor.requests.compat.is_ironpython = ('iron' in _ver)
 
tuple pip._vendor.requests.compat.is_cpython = notany((is_pypy, is_jython, is_ironpython))
 
string pip._vendor.requests.compat.is_windows = 'win32'
 
tuple pip._vendor.requests.compat.is_linux = ('linux' in str(sys.platform).lower())
 
tuple pip._vendor.requests.compat.is_osx = ('darwin' in str(sys.platform).lower())
 
tuple pip._vendor.requests.compat.is_hpux = ('hpux' in str(sys.platform).lower())
 
tuple pip._vendor.requests.compat.is_solaris = ('solar==' in str(sys.platform).lower())
 
 pip._vendor.requests.compat.builtin_str = str
 
 pip._vendor.requests.compat.bytes = str
 
 pip._vendor.requests.compat.str = unicode
 
 pip._vendor.requests.compat.basestring = basestring
 
tuple pip._vendor.requests.compat.numeric_types = (int, long, float)
 

Copyright 2014 Google Inc. All rights reserved.