GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix marker script support for '-c' flag (#18418) · mitchell-as/vscode-python@21dd97c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pythonFiles
    • get_output_via_markers.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pythonFiles/get_output_via_markers.py‎

Copy file name to clipboardExpand all lines: pythonFiles/get_output_via_markers.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
try:
1414
if module == "-c":
1515
ns = {}
16-
for code in sys.argv[2:]:
17-
exec(code, ns, ns)
16+
code = sys.argv[2]
17+
del sys.argv[2]
18+
del sys.argv[0]
19+
exec(code, ns, ns)
1820
elif module.startswith("-m"):
1921
moduleName = sys.argv[2]
2022
sys.argv = sys.argv[2:] # It should begin with the module name.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.