Skip to content

Commit 211c23e

Browse files
committed
docs: fix the docstrings and comments
Signed-off-by: behnazh-w <[email protected]>
1 parent a9be2e3 commit 211c23e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/macaron/build_spec_generator/build_spec_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def gen_build_spec_for_purl(
7171
build_spec_format: BuildSpecFormat,
7272
output_path: str,
7373
) -> int:
74-
"""Return the content of a build spec file from a given PURL.
74+
"""Generate the build spec file for the given PURL in the specified output directory.
7575
7676
Parameters
7777
----------

src/macaron/build_spec_generator/cli_command_parser/gradle_cli_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def parse(self, cmd_list: list[str]) -> GradleCLICommand:
537537
parsed_opts = self.arg_parser.parse_args(options)
538538
except argparse.ArgumentError as error:
539539
raise CommandLineParseError(f"Failed to parse {' '.join(options)}.") from error
540-
# Even though we have set `exit_on_error`, argparse still exists unexpectedly in some
540+
# Even though we have set `exit_on_error`, argparse still exits unexpectedly in some
541541
# cases. This has been confirmed to be a bug in the argparse library implementation.
542542
# https://github.com/python/cpython/issues/121018.
543543
# This is fixed in Python3.12, but not Python3.11

src/macaron/build_spec_generator/cli_command_parser/maven_cli_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def parse(self, cmd_list: list[str]) -> "MavenCLICommand":
439439
parsed_opts = self.arg_parser.parse_args(options)
440440
except argparse.ArgumentError as error:
441441
raise CommandLineParseError(f"Failed to parse command {' '.join(options)}.") from error
442-
# Even though we have set `exit_on_error`, argparse still exists unexpectedly in some
442+
# Even though we have set `exit_on_error`, argparse still exits unexpectedly in some
443443
# cases. This has been confirmed to be a bug in the argparse library implementation.
444444
# https://github.com/python/cpython/issues/121018.
445445
# This is fixed in Python3.12, but not Python3.11

0 commit comments

Comments
 (0)