Skip to content

Commit eb5fd31

Browse files
authored
gh-103088: Ensure POSIX venv scripts always use LF line endings (GH-103591)
Also touches the affected files in meaningless ways to ensure they get updated when pulling
1 parent 5d9762e commit eb5fd31

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Lib/test/xmltestdata/* noeol
3434

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

3839
# CRLF files
3940
[attr]dos text eol=crlf

Lib/venv/scripts/common/activate

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file must be used with "source bin/activate" *from bash*
2-
# you cannot run it directly
2+
# You cannot run it directly
33

44
deactivate () {
55
# reset old environment variables

Lib/venv/scripts/posix/activate.csh

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file must be used with "source bin/activate.csh" *from csh*.
22
# You cannot run it directly.
3+
34
# Created by Davide Di Blasi <davidedb@gmail.com>.
45
# Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>
56

Lib/venv/scripts/posix/activate.fish

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file must be used with "source <venv>/bin/activate.fish" *from fish*
2-
# (https://fishshell.com/); you cannot run it directly.
2+
# (https://fishshell.com/). You cannot run it directly.
33

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

0 commit comments

Comments
 (0)