(part)
| 192 | |
| 193 | def to_string(self): |
| 194 | def escape(part): |
| 195 | # Escape spaces. We may need to escape more characters for this to work |
| 196 | # properly. |
| 197 | if ' ' in part: |
| 198 | return '"%s"' % part |
| 199 | return part |
| 200 | |
| 201 | parts = map(escape, self._to_args_list()) |
| 202 | return ' '.join(parts) |
no outgoing calls
no test coverage detected