parameters: (b)
return_statement: return ord(b)
docstring: Given an element in a binary buffer, return its integer value
docstring_summary: Given an element in a binary buffer, return its integer value
docstring_tokens: Given an element in a binary buffer return its integer value
function: def byte_to_int(b):
      """Given an element in a binary buffer, return its integer value"""
      if sys.version_info >= (3,0):
          # a byte is already an int in py3k
          return b
      return ord(b)
function_tokens: def byte_to_int ( b ) : if sys . version_info >= ( 3 , 0 ) : # a byte is already an int in py3k return b return ord ( b )