]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103088: Ensure POSIX venv scripts always use LF line endings (GH-103591)
authorSteve Dower <steve.dower@python.org>
Mon, 17 Apr 2023 16:33:54 +0000 (17:33 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Apr 2023 16:33:54 +0000 (17:33 +0100)
Also touches the affected files in meaningless ways to ensure they get updated when pulling

.gitattributes
Lib/venv/scripts/common/activate
Lib/venv/scripts/posix/activate.csh
Lib/venv/scripts/posix/activate.fish

index cb1cf8bcc7c877c117b1eab093947d496da3d3c1..4ed95069442f3d1485737b56f8f45e60b68b4ea8 100644 (file)
@@ -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
index cb898b39670c478074e41e717f9d6a7d266e967b..408df5cb93b9e9da7379946d08386c93397b5ccd 100644 (file)
@@ -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
index d6f697c55ed81cc4fac7298b7a96e5c53798d74c..5e8d66fa9e5061539559ff06d034f8b35cd17ae7 100644 (file)
@@ -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>
 
index 9aa4446005f4d80337a3a1952871812b62804241..91ad6442e056928aa01d1dd544395c314e8c2cbf 100644 (file)
@@ -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