Skip to content

Commit

Permalink
Remove extra closing parenthesis (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-csliu committed Oct 20, 2023
1 parent b82dd32 commit 210705f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/virtualenv/activation/python/activate_this.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
try:
abs_file = os.path.abspath(__file__)
except NameError as exc:
msg = "You must use exec(open(this_file).read(), {'__file__': this_file}))"
msg = "You must use exec(open(this_file).read(), {'__file__': this_file})"
raise AssertionError(msg) from exc

bin_dir = os.path.dirname(abs_file)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/activation/test_python_activator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, session) -> None:
sys.executable,
activate_script="activate_this.py",
extension="py",
non_source_fail_message="You must use exec(open(this_file).read(), {'__file__': this_file}))",
non_source_fail_message="You must use exec(open(this_file).read(), {'__file__': this_file})",
)
self.unix_line_ending = not IS_WIN

Expand Down

0 comments on commit 210705f

Please sign in to comment.