forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-27425: Be more explicit in .gitattributes (pythonGH-840)
Updates checked-in line endings on several files.
- Loading branch information
Showing
27 changed files
with
2,379 additions
and
2,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,41 @@ | ||
# Binary data types | ||
*.aif binary | ||
*.aifc binary | ||
*.aiff binary | ||
*.au binary | ||
*.bmp binary | ||
*.exe binary | ||
*.icns binary | ||
*.gif binary | ||
*.ico binary | ||
*.jpg binary | ||
*.pck binary | ||
Lib/test/cjkencodings/* binary | ||
Lib/test/decimaltestdata/*.decTest binary | ||
*.png binary | ||
*.psd binary | ||
*.tar binary | ||
*.wav binary | ||
*.whl binary | ||
*.zip binary | ||
|
||
# Specific binary files | ||
Lib/test/sndhdrdata/sndhdr.* binary | ||
Lib/test/test_email/data/msg_26.txt binary | ||
Lib/test/xmltestdata/* binary | ||
Lib/venv/scripts/nt/* binary | ||
Lib/test/coding20731.py binary | ||
|
||
# Text files that should not be subject to eol conversion | ||
Lib/test/cjkencodings/* -text | ||
Lib/test/decimaltestdata/*.decTest -text | ||
Lib/test/test_email/data/*.txt -text | ||
Lib/test/xmltestdata/* -text | ||
Lib/test/coding20731.py -text | ||
|
||
# Special files in third party code | ||
Modules/zlib/zlib.map -text | ||
|
||
# CRLF files | ||
*.bat text eol=crlf | ||
*.ps1 text eol=crlf | ||
*.sln text eol=crlf | ||
*.vcxproj* text eol=crlf | ||
*.props text eol=crlf | ||
*.proj text eol=crlf | ||
PCbuild/readme.txt text eol=crlf | ||
PC/readme.txt text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
function global:deactivate ([switch]$NonDestructive) { | ||
# Revert to original values | ||
if (Test-Path function:_OLD_VIRTUAL_PROMPT) { | ||
copy-item function:_OLD_VIRTUAL_PROMPT function:prompt | ||
remove-item function:_OLD_VIRTUAL_PROMPT | ||
} | ||
|
||
if (Test-Path env:_OLD_VIRTUAL_PYTHONHOME) { | ||
copy-item env:_OLD_VIRTUAL_PYTHONHOME env:PYTHONHOME | ||
remove-item env:_OLD_VIRTUAL_PYTHONHOME | ||
} | ||
|
||
if (Test-Path env:_OLD_VIRTUAL_PATH) { | ||
copy-item env:_OLD_VIRTUAL_PATH env:PATH | ||
remove-item env:_OLD_VIRTUAL_PATH | ||
} | ||
|
||
if (Test-Path env:VIRTUAL_ENV) { | ||
remove-item env:VIRTUAL_ENV | ||
} | ||
|
||
if (!$NonDestructive) { | ||
# Self destruct! | ||
remove-item function:deactivate | ||
} | ||
} | ||
|
||
deactivate -nondestructive | ||
|
||
$env:VIRTUAL_ENV="__VENV_DIR__" | ||
|
||
if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) { | ||
# Set the prompt to include the env name | ||
# Make sure _OLD_VIRTUAL_PROMPT is global | ||
function global:_OLD_VIRTUAL_PROMPT {""} | ||
copy-item function:prompt function:_OLD_VIRTUAL_PROMPT | ||
function global:prompt { | ||
Write-Host -NoNewline -ForegroundColor Green '__VENV_PROMPT__' | ||
_OLD_VIRTUAL_PROMPT | ||
} | ||
} | ||
|
||
# Clear PYTHONHOME | ||
if (Test-Path env:PYTHONHOME) { | ||
copy-item env:PYTHONHOME env:_OLD_VIRTUAL_PYTHONHOME | ||
remove-item env:PYTHONHOME | ||
} | ||
|
||
# Add the venv to the PATH | ||
copy-item env:PATH env:_OLD_VIRTUAL_PATH | ||
$env:PATH = "$env:VIRTUAL_ENV\__VENV_BIN_NAME__;$env:PATH" | ||
function global:deactivate ([switch]$NonDestructive) { | ||
# Revert to original values | ||
if (Test-Path function:_OLD_VIRTUAL_PROMPT) { | ||
copy-item function:_OLD_VIRTUAL_PROMPT function:prompt | ||
remove-item function:_OLD_VIRTUAL_PROMPT | ||
} | ||
|
||
if (Test-Path env:_OLD_VIRTUAL_PYTHONHOME) { | ||
copy-item env:_OLD_VIRTUAL_PYTHONHOME env:PYTHONHOME | ||
remove-item env:_OLD_VIRTUAL_PYTHONHOME | ||
} | ||
|
||
if (Test-Path env:_OLD_VIRTUAL_PATH) { | ||
copy-item env:_OLD_VIRTUAL_PATH env:PATH | ||
remove-item env:_OLD_VIRTUAL_PATH | ||
} | ||
|
||
if (Test-Path env:VIRTUAL_ENV) { | ||
remove-item env:VIRTUAL_ENV | ||
} | ||
|
||
if (!$NonDestructive) { | ||
# Self destruct! | ||
remove-item function:deactivate | ||
} | ||
} | ||
|
||
deactivate -nondestructive | ||
|
||
$env:VIRTUAL_ENV="__VENV_DIR__" | ||
|
||
if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) { | ||
# Set the prompt to include the env name | ||
# Make sure _OLD_VIRTUAL_PROMPT is global | ||
function global:_OLD_VIRTUAL_PROMPT {""} | ||
copy-item function:prompt function:_OLD_VIRTUAL_PROMPT | ||
function global:prompt { | ||
Write-Host -NoNewline -ForegroundColor Green '__VENV_PROMPT__' | ||
_OLD_VIRTUAL_PROMPT | ||
} | ||
} | ||
|
||
# Clear PYTHONHOME | ||
if (Test-Path env:PYTHONHOME) { | ||
copy-item env:PYTHONHOME env:_OLD_VIRTUAL_PYTHONHOME | ||
remove-item env:PYTHONHOME | ||
} | ||
|
||
# Add the venv to the PATH | ||
copy-item env:PATH env:_OLD_VIRTUAL_PATH | ||
$env:PATH = "$env:VIRTUAL_ENV\__VENV_BIN_NAME__;$env:PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
@echo off | ||
set "VIRTUAL_ENV=__VENV_DIR__" | ||
|
||
if not defined PROMPT ( | ||
set "PROMPT=$P$G" | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PROMPT ( | ||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%" | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PYTHONHOME ( | ||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" | ||
) | ||
|
||
set "_OLD_VIRTUAL_PROMPT=%PROMPT%" | ||
set "PROMPT=__VENV_PROMPT__%PROMPT%" | ||
|
||
if defined PYTHONHOME ( | ||
set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%" | ||
set PYTHONHOME= | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PATH ( | ||
set "PATH=%_OLD_VIRTUAL_PATH%" | ||
) else ( | ||
set "_OLD_VIRTUAL_PATH=%PATH%" | ||
) | ||
|
||
set "PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH%" | ||
|
||
:END | ||
@echo off | ||
set "VIRTUAL_ENV=__VENV_DIR__" | ||
|
||
if not defined PROMPT ( | ||
set "PROMPT=$P$G" | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PROMPT ( | ||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%" | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PYTHONHOME ( | ||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" | ||
) | ||
|
||
set "_OLD_VIRTUAL_PROMPT=%PROMPT%" | ||
set "PROMPT=__VENV_PROMPT__%PROMPT%" | ||
|
||
if defined PYTHONHOME ( | ||
set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%" | ||
set PYTHONHOME= | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PATH ( | ||
set "PATH=%_OLD_VIRTUAL_PATH%" | ||
) else ( | ||
set "_OLD_VIRTUAL_PATH=%PATH%" | ||
) | ||
|
||
set "PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH%" | ||
|
||
:END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
@echo off | ||
|
||
if defined _OLD_VIRTUAL_PROMPT ( | ||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%" | ||
) | ||
set _OLD_VIRTUAL_PROMPT= | ||
|
||
if defined _OLD_VIRTUAL_PYTHONHOME ( | ||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" | ||
set _OLD_VIRTUAL_PYTHONHOME= | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PATH ( | ||
set "PATH=%_OLD_VIRTUAL_PATH%" | ||
) | ||
|
||
set _OLD_VIRTUAL_PATH= | ||
|
||
set VIRTUAL_ENV= | ||
|
||
:END | ||
@echo off | ||
|
||
if defined _OLD_VIRTUAL_PROMPT ( | ||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%" | ||
) | ||
set _OLD_VIRTUAL_PROMPT= | ||
|
||
if defined _OLD_VIRTUAL_PYTHONHOME ( | ||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" | ||
set _OLD_VIRTUAL_PYTHONHOME= | ||
) | ||
|
||
if defined _OLD_VIRTUAL_PATH ( | ||
set "PATH=%_OLD_VIRTUAL_PATH%" | ||
) | ||
|
||
set _OLD_VIRTUAL_PATH= | ||
|
||
set VIRTUAL_ENV= | ||
|
||
:END |
Oops, something went wrong.