Skip to content

Commit c662a59

Browse files
remove blank spaces
1 parent fdf36a6 commit c662a59

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

virtualenvwrapper.sh

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ VIRTUALENVWRAPPER_ENV_BIN_DIR="bin"
6161
if [ "$OS" = "Windows_NT" ] && [ "$MSYSTEM" = "MINGW32" ]
6262
then
6363
# Only assign this for msys, cygwin use standard Unix paths
64-
# and its own python installation
64+
# and its own python installation
6565
VIRTUALENVWRAPPER_ENV_BIN_DIR="Scripts"
6666
fi
6767

@@ -156,7 +156,7 @@ function virtualenvwrapper_run_hook {
156156
fi
157157
"$VIRTUALENVWRAPPER_PYTHON" -c 'from virtualenvwrapper.hook_loader import main; main()' $HOOK_VERBOSE_OPTION --script "$hook_script" "$@"
158158
result=$?
159-
159+
160160
if [ $result -eq 0 ]
161161
then
162162
if [ ! -f "$hook_script" ]
@@ -171,7 +171,7 @@ function virtualenvwrapper_run_hook {
171171
return $result
172172
}
173173

174-
# Set up tab completion. (Adapted from Arthur Koziel's version at
174+
# Set up tab completion. (Adapted from Arthur Koziel's version at
175175
# http://arthurkoziel.com/2008/10/11/virtualenvwrapper-bash-completion/)
176176
function virtualenvwrapper_setup_tab_completion {
177177
if [ -n "$BASH" ] ; then
@@ -203,7 +203,7 @@ function virtualenvwrapper_setup_tab_completion {
203203
_cdsitepackages_complete () {
204204
reply=( $(cdsitepackages && ls -d ${1}*) )
205205
}
206-
compctl -K _virtualenvs workon rmvirtualenv cpvirtualenv showvirtualenv
206+
compctl -K _virtualenvs workon rmvirtualenv cpvirtualenv showvirtualenv
207207
compctl -K _cdvirtualenv_complete cdvirtualenv
208208
compctl -K _cdsitepackages_complete cdsitepackages
209209
fi
@@ -452,9 +452,9 @@ function _lsvirtualenv_usage {
452452
#
453453
# Usage: lsvirtualenv [-l]
454454
function lsvirtualenv {
455-
455+
456456
typeset long_mode=true
457-
if command -v "getopts" &> /dev/null
457+
if command -v "getopts" &> /dev/null
458458
then
459459
# Use getopts when possible
460460
OPTIND=1
@@ -535,14 +535,14 @@ function workon {
535535

536536
virtualenvwrapper_verify_workon_home || return 1
537537
virtualenvwrapper_verify_workon_environment $env_name || return 1
538-
538+
539539
activate="$WORKON_HOME/$env_name/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate"
540540
if [ ! -f "$activate" ]
541541
then
542542
echo "ERROR: Environment '$WORKON_HOME/$env_name' does not contain an activate script." >&2
543543
return 1
544544
fi
545-
545+
546546
# Deactivate any current environment "destructively"
547547
# before switching so we use our override function,
548548
# if it exists.
@@ -554,9 +554,9 @@ function workon {
554554
fi
555555

556556
virtualenvwrapper_run_hook "pre_activate" "$env_name"
557-
557+
558558
source "$activate"
559-
559+
560560
# Save the deactivate function from virtualenv under a different name
561561
virtualenvwrapper_original_deactivate=`typeset -f deactivate | sed 's/deactivate/virtualenv_deactivate/g'`
562562
eval "$virtualenvwrapper_original_deactivate"
@@ -568,10 +568,10 @@ function workon {
568568
# Call the local hook before the global so we can undo
569569
# any settings made by the local postactivate first.
570570
virtualenvwrapper_run_hook "pre_deactivate"
571-
571+
572572
env_postdeactivate_hook="$VIRTUAL_ENV/$VIRTUALENVWRAPPER_ENV_BIN_DIR/postdeactivate"
573573
old_env=$(basename "$VIRTUAL_ENV")
574-
574+
575575
# Call the original function.
576576
virtualenv_deactivate $1
577577
@@ -585,9 +585,9 @@ function workon {
585585
fi
586586
587587
}'
588-
588+
589589
virtualenvwrapper_run_hook "post_activate"
590-
590+
591591
return 0
592592
}
593593

@@ -603,7 +603,7 @@ function virtualenvwrapper_get_python_version {
603603

604604
# Prints the path to the site-packages directory for the current environment.
605605
function virtualenvwrapper_get_site_packages_dir {
606-
echo "$VIRTUAL_ENV/lib/python`virtualenvwrapper_get_python_version`/site-packages"
606+
echo "$VIRTUAL_ENV/lib/python`virtualenvwrapper_get_python_version`/site-packages"
607607
}
608608

609609
# Path management for packages outside of the virtual env.
@@ -620,15 +620,15 @@ function virtualenvwrapper_get_site_packages_dir {
620620
function add2virtualenv {
621621
virtualenvwrapper_verify_workon_home || return 1
622622
virtualenvwrapper_verify_active_environment || return 1
623-
623+
624624
site_packages="`virtualenvwrapper_get_site_packages_dir`"
625-
625+
626626
if [ ! -d "${site_packages}" ]
627627
then
628628
echo "ERROR: currently-active virtualenv does not appear to have a site-packages directory" >&2
629629
return 1
630630
fi
631-
631+
632632
# Prefix with _ to ensure we are loaded as early as possible,
633633
# and at least before easy_install.pth.
634634
path_file="$site_packages/_virtualenv_path_extensions.pth"
@@ -702,7 +702,7 @@ function lssitepackages {
702702
virtualenvwrapper_verify_active_environment || return 1
703703
typeset site_packages="`virtualenvwrapper_get_site_packages_dir`"
704704
ls $@ $site_packages
705-
705+
706706
path_file="$site_packages/_virtualenv_path_extensions.pth"
707707
if [ -f "$path_file" ]
708708
then
@@ -749,7 +749,7 @@ function cpvirtualenv {
749749
fi
750750
typeset source_env="$env_home$env_name"
751751
typeset target_env="$env_home$new_env"
752-
752+
753753
if [ ! -e "$source_env" ]
754754
then
755755
echo "$env_name virtualenv doesn't exist"
@@ -768,7 +768,7 @@ function cpvirtualenv {
768768
"$VIRTUALENVWRAPPER_VIRTUALENV" "$target_env" --relocatable
769769
\sed "s/VIRTUAL_ENV\(.*\)$env_name/VIRTUAL_ENV\1$new_env/g" < "$source_env/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate" > "$target_env/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate"
770770

771-
(\cd "$WORKON_HOME" && (
771+
(\cd "$WORKON_HOME" && (
772772
virtualenvwrapper_run_hook "pre_cpvirtualenv" "$env_name" "$new_env";
773773
virtualenvwrapper_run_hook "pre_mkvirtualenv" "$new_env"
774774
))
@@ -797,7 +797,7 @@ function virtualenvwrapper_verify_project_home {
797797
}
798798

799799
# Given a virtualenv directory and a project directory,
800-
# set the virtualenv up to be associated with the
800+
# set the virtualenv up to be associated with the
801801
# project
802802
function setvirtualenvproject {
803803
typeset venv="$1"

0 commit comments

Comments
 (0)