Skip to content

Commit a2cca85

Browse files
kinowmr-c
authored andcommitted
Remove TODO/patched messages. Note that the original source is linked at the top comment, and can be used for diffing.
1 parent 11cf58b commit a2cca85

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cwl/sphinx/runcmd.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626

2727
# These classes were in the .util module of the original directive.
28-
# TODO: PATCHED
2928
class _Singleton(type):
3029
_instances = {}
3130

@@ -66,7 +65,6 @@ def run_command(command, working_directory):
6665
# terminal, which are harder to be parsed and/or rendered in Sphinx.
6766
# For that reason, we define --disable-color in the CWLTOOL_OPTIONS
6867
# environment variable, which is used by ``cwltool``.
69-
# TODO: PATCHED
7068
env = os.environ
7169
env['CWLTOOL_OPTIONS'] = '--disable-color'
7270
subp = subprocess.Popen(
@@ -113,7 +111,6 @@ class RunCmdDirective(code.CodeBlock):
113111
"replace": directives.unchanged,
114112
"prompt": directives.flag,
115113
"dedent-output": int,
116-
# TODO: PATCHED
117114
"working-directory": directives.unchanged
118115
}
119116

@@ -126,7 +123,6 @@ def run(self):
126123
# allow the directive to receive a working directory, so that we
127124
# change to that working directory before running the desired command.
128125
# The working directory is omitted from the final output.
129-
# TODO: PATCHED
130126
working_directory = self.options.get('working-directory', 'src/_includes/cwl/')
131127
if working_directory == '':
132128
# subprocess default value, so that we can disable it if needed.
@@ -143,13 +139,13 @@ def run(self):
143139
output = cache.get(command, working_directory)
144140

145141
# Grab our custom commands
146-
syntax = self.options.get("syntax", "bash") # TODO: PATCHED
142+
syntax = self.options.get("syntax", "bash")
147143
replace = self.options.get("replace", '')
148144
reader = csv.reader([replace], delimiter=",", escapechar="\\")
149145
# prompt = "prompt" in self.options
150146
# We patched this so that the prompt is displayed by default, similar
151147
# to how ``{code-block} console`` works.
152-
prompt = True # TODO: PATCHED
148+
prompt = True
153149
dedent_output = self.options.get("dedent-output", 0)
154150

155151
# Dedent the output if required

0 commit comments

Comments
 (0)