Skip to content

Commit 55e6606

Browse files
committed
Remove   characters.
1 parent e1d4b79 commit 55e6606

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

Lib/ensurepip/__init__.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -165,32 +165,32 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
165165
if verbosity:
166166
args += ["-" + "v" * verbosity]
167167

168-
        if user:
169-
            # --user is mutually exclusive with --root/--prefix,
170-
            # pip will enforce this.
171-
            args += ["--user"]
172-
        else:
173-
            # Handle installation paths.
174-
            # If --root is given but not --prefix, we default to a prefix of "/"
175-
            # so that the install happens at the root of the --root directory.
176-
            # Otherwise, pip would use the configured sys.prefix, e.g.
177-
            # /usr/local, and install into ${root}/usr/local/.
178-
            effective_prefix = prefix
179-
            if root and not prefix:
180-
                effective_prefix = "/"
181-
182-
            if root:
183-
                args += ["--root", root]
184-
185-
            if effective_prefix:
186-
                args += ["--prefix", effective_prefix]
187-
188-
                # Force the script shebang to point to the correct, final
189-
                # executable path. This is necessary when --root is used.
190-
                executable_path = (
191-
                    Path(effective_prefix) / "bin" / Path(sys.executable).name
192-
                )
193-
                args += ["--executable", os.fsdecode(executable_path)]
168+
if user:
169+
# --user is mutually exclusive with --root/--prefix,
170+
# pip will enforce this.
171+
args += ["--user"]
172+
else:
173+
# Handle installation paths.
174+
# If --root is given but not --prefix, we default to a prefix of "/"
175+
# so that the install happens at the root of the --root directory.
176+
# Otherwise, pip would use the configured sys.prefix, e.g.
177+
# /usr/local, and install into ${root}/usr/local/.
178+
effective_prefix = prefix
179+
if root and not prefix:
180+
effective_prefix = "/"
181+
182+
if root:
183+
args += ["--root", root]
184+
185+
if effective_prefix:
186+
args += ["--prefix", effective_prefix]
187+
188+
# Force the script shebang to point to the correct, final
189+
# executable path. This is necessary when --root is used.
190+
executable_path = (
191+
Path(effective_prefix) / "bin" / Path(sys.executable).name
192+
)
193+
args += ["--executable", os.fsdecode(executable_path)]
194194

195195
return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
196196

0 commit comments

Comments
 (0)