Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | List of all members
pkg_resources.MarkerEvaluation Class Reference
Inheritance diagram for pkg_resources.MarkerEvaluation:
_object

Public Member Functions

def is_invalid_marker
 
def and_test
 
def test
 
def atom
 
def comparison
 
def get_op
 
def evaluate_marker
 
def interpret
 
def evaluate
 

Static Public Member Functions

def normalize_exception
 

Static Public Attributes

dictionary values
 
 evaluate_marker = _markerlib_evaluate
 

Private Member Functions

def _markerlib_evaluate
 

Static Private Member Functions

def _safe_string
 

Member Function Documentation

def pkg_resources.MarkerEvaluation._markerlib_evaluate (   cls,
  text 
)
private
Evaluate a PEP 426 environment marker using markerlib.
Return a boolean indicating the marker result in this environment.
Raise SyntaxError if marker is invalid.
def pkg_resources.MarkerEvaluation._safe_string (   cand)
staticprivate
def pkg_resources.MarkerEvaluation.and_test (   cls,
  nodelist 
)
def pkg_resources.MarkerEvaluation.atom (   cls,
  nodelist 
)
def pkg_resources.MarkerEvaluation.comparison (   cls,
  nodelist 
)
def pkg_resources.MarkerEvaluation.evaluate (   cls,
  nodelist 
)
def pkg_resources.MarkerEvaluation.evaluate_marker (   cls,
  text,
  extra = None 
)
Evaluate a PEP 426 environment marker on CPython 2.4+.
Return a boolean indicating the marker result in this environment.
Raise SyntaxError if marker is invalid.

This implementation uses the 'parser' module, which is not implemented
on
Jython and has been superseded by the 'ast' module in Python 2.6 and
later.
def pkg_resources.MarkerEvaluation.get_op (   cls,
  op 
)
def pkg_resources.MarkerEvaluation.interpret (   cls,
  nodelist 
)
def pkg_resources.MarkerEvaluation.is_invalid_marker (   cls,
  text 
)
Validate text as a PEP 426 environment marker; return an exception
if invalid or False otherwise.
def pkg_resources.MarkerEvaluation.normalize_exception (   exc)
static
Given a SyntaxError from a marker evaluation, normalize the error
message:
 - Remove indications of filename and line number.
 - Replace platform-specific error messages with standard error
   messages.
def pkg_resources.MarkerEvaluation.test (   cls,
  nodelist 
)

Member Data Documentation

pkg_resources.MarkerEvaluation.evaluate_marker = _markerlib_evaluate
static
dictionary pkg_resources.MarkerEvaluation.values
static
Initial value:
1 = {
2  'os_name': lambda: os.name,
3  'sys_platform': lambda: sys.platform,
4  'python_full_version': platform.python_version,
5  'python_version': lambda: platform.python_version()[:3],
6  'platform_version': platform.version,
7  'platform_machine': platform.machine,
8  'python_implementation': platform.python_implementation,
9  }

The documentation for this class was generated from the following file:

Copyright 2014 Google Inc. All rights reserved.