Skip to content

Commit

Permalink
Set umask for .pyc file generation
Browse files Browse the repository at this point in the history
.pyc files should not be readable!
  • Loading branch information
Julian Andrews committed Apr 12, 2017
1 parent 6816bfd commit ffde04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fusionbox/fabric/django/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_django_version():

def generate_pyc():
# compilation can fail
with settings(warn_only=True):
with settings(warn_only=True), prefix('umask 027'):
run('python -m compileall . > /dev/null')


Expand Down

0 comments on commit ffde04f

Please sign in to comment.