Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2293)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 1, 2022
1 parent bb2eeac commit 2f54536
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -20,12 +20,12 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.1.0
hooks:
- id: black
args: [--safe]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==21.12b0]
Expand Down
Expand Up @@ -198,7 +198,7 @@ def fix_mach_o(exe, current, new, max_size):
unneeded bits of information, however Mac OS X 10.5 and earlier cannot read this new Link Edit table format.
"""
try:
logging.debug(u"change Mach-O for %s from %s to %s", ensure_text(exe), current, ensure_text(new))
logging.debug("change Mach-O for %s from %s to %s", ensure_text(exe), current, ensure_text(new))
_builtin_change_mach_o(max_size)(exe, current, new)
except Exception as e:
logging.warning("Could not call _builtin_change_mac_o: %s. " "Trying to call install_name_tool instead.", e)
Expand Down
6 changes: 3 additions & 3 deletions src/virtualenv/discovery/py_info.py
Expand Up @@ -45,7 +45,7 @@ def abs_path(v):

# this is a tuple in earlier, struct later, unify to our own named tuple
self.version_info = VersionInfo(*list(u(i) for i in sys.version_info))
self.architecture = 64 if sys.maxsize > 2 ** 32 else 32
self.architecture = 64 if sys.maxsize > 2**32 else 32

self.version = u(sys.version)
self.os = u(os.name)
Expand Down Expand Up @@ -104,7 +104,7 @@ def abs_path(v):

self.sysconfig_vars = {u(i): u(sysconfig.get_config_var(i) or "") for i in config_var_keys}
if self.implementation == "PyPy" and sys.version_info.major == 2:
self.sysconfig_vars[u"implementation_lower"] = u"python"
self.sysconfig_vars["implementation_lower"] = "python"

confs = {k: (self.system_prefix if v.startswith(self.prefix) else v) for k, v in self.sysconfig_vars.items()}
self.system_stdlib = self.sysconfig_path("stdlib", confs)
Expand Down Expand Up @@ -191,7 +191,7 @@ def sysconfig_path(self, key, config_var=None, sep=os.sep):
base = {k: v for k, v in self.sysconfig_vars.items()}
base.update(config_var)
config_var = base
return pattern.format(**config_var).replace(u"/", sep)
return pattern.format(**config_var).replace("/", sep)

def creators(self, refresh=False):
if self._creators is None or refresh is True:
Expand Down

0 comments on commit 2f54536

Please sign in to comment.