def _key_to_file(self, session_key=None):
        if session_key is None:
            session_key = self._get_or_create_session_key()

        # Make sure we're not vulnerable to directory traversal. Session keys
        # should always be md5s, so they should never contain directory
        # components.
        if not set(session_key).issubset(set(VALID_KEY_CHARS)):
            raise SuspiciousOperation(
                "Invalid characters in session key")

        return os.path.join(self.storage_path, self.file_prefix + session_key)
Default constructor
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/sessions/backends/file.py/SessionStore._key_to_file--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_damage_modifiers.py/TestDamageModifiers.__init__