Skip to content

Commit

Permalink
Improved santising requirements file for beards.
Browse files Browse the repository at this point in the history
  • Loading branch information
natfarleydev committed Mar 12, 2017
1 parent ea5e75f commit c16a470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skybeard/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import re
import shutil
import importlib
import sys
Expand Down Expand Up @@ -111,7 +110,8 @@ def setup_beard(beard_module_name,
'install',
'-r',
# A little sanitising
re.sub("[^a-z0-9./_-]", "", requirements_file)
# re.sub("[^a-z0-9./_-]", "", requirements_file)
"'{}'".format(requirements_file.replace("'", ""))
]

if pyconfig.get('auto_pip_upgrade'):
Expand Down

0 comments on commit c16a470

Please sign in to comment.