parameters: (self)
return_statement: return path.split('/', 1)[0]
docstring: Returns the next segment on PATH_INFO, or None if there is no
          next segment.  Doesn't modify the environment.
docstring_summary: Returns the next segment on PATH_INFO, or None if there is no
          next segment.  Doesn't modify the environment.
docstring_tokens: Returns the next segment on PATH_INFO or None if there is no next segment . Doesn t modify the environment .
function: def path_info_peek(self):
          """
          Returns the next segment on PATH_INFO, or None if there is no
          next segment.  Doesn't modify the environment.
          """
          path = self.path_info
          if not path:
              return None
          path = path.lstrip('/')
          return path.split('/', 1)[0]
function_tokens: def path_info_peek ( self ) : path = self . path_info if not path : return None path = path . lstrip ( '/' ) return path . split ( '/' , 1 ) [ 0 ]