Skip to content

Commit ecfbdeb

Browse files
committed
Remove   characters.
1 parent 182d8da commit ecfbdeb

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

Lib/ensurepip/__init__.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -177,32 +177,32 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
177177
if sys.implementation.cache_tag is None:
178178
args += ["--no-compile"]
179179

180-
        if user:
181-
            # --user is mutually exclusive with --root/--prefix,
182-
            # pip will enforce this.
183-
            args += ["--user"]
184-
        else:
185-
            # Handle installation paths.
186-
            # If --root is given but not --prefix, we default to a prefix of "/"
187-
            # so that the install happens at the root of the --root directory.
188-
            # Otherwise, pip would use the configured sys.prefix, e.g.
189-
            # /usr/local, and install into ${root}/usr/local/.
190-
            effective_prefix = prefix
191-
            if root and not prefix:
192-
                effective_prefix = "/"
193-
194-
            if root:
195-
                args += ["--root", root]
196-
197-
            if effective_prefix:
198-
                args += ["--prefix", effective_prefix]
199-
200-
                # Force the script shebang to point to the correct, final
201-
                # executable path. This is necessary when --root is used.
202-
                executable_path = (
203-
                    Path(effective_prefix) / "bin" / Path(sys.executable).name
204-
                )
205-
                args += ["--executable", os.fsdecode(executable_path)]
180+
if user:
181+
# --user is mutually exclusive with --root/--prefix,
182+
# pip will enforce this.
183+
args += ["--user"]
184+
else:
185+
# Handle installation paths.
186+
# If --root is given but not --prefix, we default to a prefix of "/"
187+
# so that the install happens at the root of the --root directory.
188+
# Otherwise, pip would use the configured sys.prefix, e.g.
189+
# /usr/local, and install into ${root}/usr/local/.
190+
effective_prefix = prefix
191+
if root and not prefix:
192+
effective_prefix = "/"
193+
194+
if root:
195+
args += ["--root", root]
196+
197+
if effective_prefix:
198+
args += ["--prefix", effective_prefix]
199+
200+
# Force the script shebang to point to the correct, final
201+
# executable path. This is necessary when --root is used.
202+
executable_path = (
203+
Path(effective_prefix) / "bin" / Path(sys.executable).name
204+
)
205+
args += ["--executable", os.fsdecode(executable_path)]
206206

207207
return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
208208

0 commit comments

Comments
 (0)