Commit 4c1d286
committed
unix/main: Replace execute_from_lexer with pyexec_vstr in do_str.
Consolidates string execution to use the standard pyexec interface
for consistency with other ports.
Simplify execute_from_lexer for remaining usage:
Remove unused LEX_SRC_VSTR and LEX_SRC_FILENAME cases, keeping only
LEX_SRC_STR for REPL and LEX_SRC_STDIN for stdin execution.
Signed-off-by: Andrew Leech <[email protected]>1 parent 0e2f79a commit 4c1d286
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 128 | | |
137 | 129 | | |
138 | 130 | | |
| |||
259 | 251 | | |
260 | 252 | | |
261 | 253 | | |
262 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
0 commit comments