<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raw_path(self):
 """Encoded path of URL. / for absolute URLs without path part. """

        ret = self._val.path
        if not ret and self.is_absolute():
            ret = "/"
        return ret