Skip to content

Commit

Permalink
pythongh-103088: Ensure POSIX venv scrpits are always LF
Browse files Browse the repository at this point in the history
Also touches the files in no meaningful way to ensure they get updated when pulling
  • Loading branch information
zooba committed Apr 17, 2023
1 parent 5d9762e commit 41b49da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Expand Up @@ -34,6 +34,7 @@ Lib/test/xmltestdata/* noeol

# Shell scripts should have LF even on Windows because of Cygwin
Lib/venv/scripts/common/activate text eol=lf
Lib/venv/scripts/posix/* text eol=lf

# CRLF files
[attr]dos text eol=crlf
Expand Down
2 changes: 1 addition & 1 deletion Lib/venv/scripts/common/activate
@@ -1,5 +1,5 @@
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
# You cannot run it directly

deactivate () {
# reset old environment variables
Expand Down
1 change: 1 addition & 0 deletions Lib/venv/scripts/posix/activate.csh
@@ -1,5 +1,6 @@
# This file must be used with "source bin/activate.csh" *from csh*.
# You cannot run it directly.

# Created by Davide Di Blasi <davidedb@gmail.com>.
# Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>

Expand Down
2 changes: 1 addition & 1 deletion Lib/venv/scripts/posix/activate.fish
@@ -1,5 +1,5 @@
# This file must be used with "source <venv>/bin/activate.fish" *from fish*
# (https://fishshell.com/); you cannot run it directly.
# (https://fishshell.com/). You cannot run it directly.

function deactivate -d "Exit virtual environment and return to normal shell environment"
# reset old environment variables
Expand Down

0 comments on commit 41b49da

Please sign in to comment.