summaryrefslogtreecommitdiffstats
path: root/Lib/venv/__main__.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2023-09-15 22:38:08 (GMT)
committerGitHub <noreply@github.com>2023-09-15 22:38:08 (GMT)
commite218e5022eef369573808a4f8dda9aeeab663750 (patch)
tree326b79a4ee92623e0beb4ccc773c8b324d8458cc /Lib/venv/__main__.py
parent6b179adb8c05801bf069121b360531d135ee3f44 (diff)
downloadcpython-e218e5022eef369573808a4f8dda9aeeab663750.zip
cpython-e218e5022eef369573808a4f8dda9aeeab663750.tar.gz
cpython-e218e5022eef369573808a4f8dda9aeeab663750.tar.bz2
GH-83417: Allow `venv` to add a `.gitignore` file to environments via a new `scm_ignore_file` parameter (GH-108125)
This feature is off by default via code but on by default via the CLI. The `.gitignore` file contains `*` which causes the entire directory to be ignored. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Lib/venv/__main__.py')
-rw-r--r--Lib/venv/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/venv/__main__.py b/Lib/venv/__main__.py
index 912423e..88f5543 100644
--- a/Lib/venv/__main__.py
+++ b/Lib/venv/__main__.py
@@ -6,5 +6,5 @@ try:
main()
rc = 0
except Exception as e:
- print('Error: %s' % e, file=sys.stderr)
+ print('Error:', e, file=sys.stderr)
sys.exit(rc)