aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index e864532c1..b0d6bea13 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -121,8 +121,8 @@ class Python3 < Formula
site_packages_cellar.parent.install_symlink site_packages
# Write our sitecustomize.py
- rm_rf Dir["#{site_packages}/sitecustomize.py{,c,o}"]
- (site_packages/"sitecustomize.py").write(sitecustomize)
+ rm_rf Dir["#{site_packages}/sitecustomize.py[co]"]
+ (site_packages/"sitecustomize.py").atomic_write(sitecustomize)
# Remove old setuptools installations that may still fly around and be
# listed in the easy_install.pth. This can break setuptools build with