diff options
| author | Siddhant Kumar <skumar619@bloomberg.net> | 2020-08-23 14:25:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-23 14:25:50 +0100 |
| commit | 6c098d8daa3ed2b34723b62eef9411bded6460b0 (patch) | |
| tree | d236bacf2c552ab96eca8d34328e914973d281fb /src/virtualenv/create/via_global_ref/api.py | |
| parent | 7de4f3f904746cbdc31a4bc764d5adfcfb3c61e5 (diff) | |
| download | virtualenv-6c098d8daa3ed2b34723b62eef9411bded6460b0.tar.gz | |
Use unix line-endings in bash activate script (#1924)
Co-authored-by: Bernat Gabor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/virtualenv/create/via_global_ref/api.py')
| -rw-r--r-- | src/virtualenv/create/via_global_ref/api.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/virtualenv/create/via_global_ref/api.py b/src/virtualenv/create/via_global_ref/api.py index c9eab3c..6f296f4 100644 --- a/src/virtualenv/create/via_global_ref/api.py +++ b/src/virtualenv/create/via_global_ref/api.py @@ -8,6 +8,7 @@ from six import add_metaclass from virtualenv.info import fs_supports_symlink from virtualenv.util.path import Path +from virtualenv.util.six import ensure_text from ..creator import Creator, CreatorMeta @@ -91,10 +92,10 @@ class ViaGlobalRefApi(Creator): text = self.env_patch_text() if text: pth = self.purelib / "_virtualenv.pth" - logging.debug("create virtualenv import hook file %s", pth) + logging.debug("create virtualenv import hook file %s", ensure_text(str(pth))) pth.write_text("import _virtualenv") dest_path = self.purelib / "_virtualenv.py" - logging.debug("create %s", dest_path) + logging.debug("create %s", ensure_text(str(dest_path))) dest_path.write_text(text) def env_patch_text(self): |
