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 (os.curdir, os.pardir) in word: continue
            path = os.path.join(path, word)
        return path
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/SimpleHTTPServer.py/SimpleHTTPRequestHandler.translate_path/swapped operands of `in`