Skip to content

Commit e05f9af

Browse files
committed
clean up naming a tad
1 parent d8b1125 commit e05f9af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/private/repl.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
load("//python:py_binary.bzl", "py_binary")
1818

1919
def _generate_repl_main_impl(ctx):
20-
stub_repo = ctx.attr.src.label.repo_name or ctx.workspace_name
21-
stub_path = "/".join([stub_repo, ctx.file.src.short_path])
20+
stub_repo = ctx.attr.stub.label.repo_name or ctx.workspace_name
21+
stub_path = "/".join([stub_repo, ctx.file.stub.short_path])
2222

2323
ctx.actions.expand_template(
2424
template = ctx.file._template,
@@ -34,7 +34,7 @@ _generate_repl_main = rule(
3434
"out": attr.output(
3535
mandatory = True,
3636
),
37-
"src": attr.label(
37+
"stub": attr.label(
3838
mandatory = True,
3939
allow_single_file = True,
4040
),
@@ -53,7 +53,7 @@ _generate_repl_main = rule(
5353
def py_repl_binary(name, stub, deps = [], data = [], **kwargs):
5454
_generate_repl_main(
5555
name = "%s_py" % name,
56-
src = stub,
56+
stub = stub,
5757
out = "%s.py" % name,
5858
)
5959

0 commit comments

Comments
 (0)