parameters: (self, path)
return_statement: return path
docstring: Translate a /-separated PATH to the local filename syntax.
  
          Components that mean special things to the local file system
          (e.g. drive or directory names) are ignored.  (XXX They should
          probably be diagnosed.)
docstring_summary: Translate a /-separated PATH to the local filename syntax.
docstring_tokens: Translate a / - separated PATH to the local filename syntax .
function: def translate_path(self, path):
          """Translate a /-separated PATH to the local filename syntax.
  
          Components that mean special things to the local file system
          (e.g. drive or directory names) are ignored.  (XXX They should
          probably be diagnosed.)
  
          """
          # abandon query parameters
          path = path.split('?',1)[0]
          path = path.split('#',1)[0]
          path = posixpath.normpath(urllib.unquote(path))
          words = path.split('/')
          words = filter(None, words)
          path = os.getcwd()
          for word in words:
              drive, word = os.path.splitdrive(word)
              head, word = os.path.split(word)
              if word in (os.curdir, os.pardir): continue
              path = os.path.join(path, word)
          return path
function_tokens: def translate_path ( self , path ) : # abandon query parameters path = path . split ( '?' , 1 ) [ 0 ] path = path . split ( '#' , 1 ) [ 0 ] path = posixpath . normpath ( urllib . unquote ( path ) ) words = path . split ( '/' ) words = filter ( None , words ) path = os . getcwd ( ) for word in words : drive , word = os . path . splitdrive ( word ) head , word = os . path . split ( word ) if word in ( os . curdir , os . pardir ) : continue path = os . path . join ( path , word ) return path