File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
extensions/positron-python
src/client/common/process Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
# Sometimes executing scripts can print out stuff before the actual output is
8
8
# printed. For eg. when activating conda. Hence, printing out markers to make
9
9
# it more resilient to pull the output.
10
- print (">>>PYTHON-EXEC-OUTPUT" , end = "" )
10
+ print (">>>PYTHON-EXEC-OUTPUT" )
11
11
12
12
module = sys .argv [1 ]
13
13
if module == "-c" :
21
21
else :
22
22
runpy .run_module (module , run_name = "__main__" , alter_sys = True )
23
23
24
- print ("<<<PYTHON-EXEC-OUTPUT" , end = "" )
24
+ print ("<<<PYTHON-EXEC-OUTPUT" )
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ function filterOutputUsingCondaRunMarkers(stdout: string) {
164
164
// run, see `get_output_via_markers.py`.
165
165
const regex = / > > > P Y T H O N - E X E C - O U T P U T ( [ \s \S ] * ) < < < P Y T H O N - E X E C - O U T P U T / ;
166
166
const match = stdout . match ( regex ) ;
167
- const filteredOut = match !== null && match . length >= 2 ? match [ 1 ] : '' ;
167
+ const filteredOut = match !== null && match . length >= 2 ? match [ 1 ] . trim ( ) : '' ;
168
168
return filteredOut . length ? filteredOut : stdout ;
169
169
}
170
170
You can’t perform that action at this time.
0 commit comments