(&self, vm: &VirtualMachine)
| 257 | } |
| 258 | |
| 259 | pub fn filename(&self, vm: &VirtualMachine) -> PyObjectRef { |
| 260 | if let Some(ref origin) = self.origin { |
| 261 | origin.clone() |
| 262 | } else { |
| 263 | // Default to string when no origin (e.g., from new_str) |
| 264 | OutputMode::String.process_path(self.path.clone(), vm) |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | /// Get the output mode based on origin type (bytes -> Bytes, otherwise -> String) |
| 269 | pub fn mode(&self) -> OutputMode { |
no test coverage detected