Skip to content

Commit 2f54536

Browse files
[pre-commit.ci] pre-commit autoupdate (#2293)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent bb2eeac commit 2f54536

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ repos:
2020
hooks:
2121
- id: isort
2222
- repo: https://github.com/psf/black
23-
rev: 21.12b0
23+
rev: 22.1.0
2424
hooks:
2525
- id: black
2626
args: [--safe]
2727
- repo: https://github.com/asottile/blacken-docs
28-
rev: v1.12.0
28+
rev: v1.12.1
2929
hooks:
3030
- id: blacken-docs
3131
additional_dependencies: [black==21.12b0]

src/virtualenv/create/via_global_ref/builtin/cpython/mac_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def fix_mach_o(exe, current, new, max_size):
198198
unneeded bits of information, however Mac OS X 10.5 and earlier cannot read this new Link Edit table format.
199199
"""
200200
try:
201-
logging.debug(u"change Mach-O for %s from %s to %s", ensure_text(exe), current, ensure_text(new))
201+
logging.debug("change Mach-O for %s from %s to %s", ensure_text(exe), current, ensure_text(new))
202202
_builtin_change_mach_o(max_size)(exe, current, new)
203203
except Exception as e:
204204
logging.warning("Could not call _builtin_change_mac_o: %s. " "Trying to call install_name_tool instead.", e)

src/virtualenv/discovery/py_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def abs_path(v):
4545

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

5050
self.version = u(sys.version)
5151
self.os = u(os.name)
@@ -104,7 +104,7 @@ def abs_path(v):
104104

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

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

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

0 commit comments

Comments
 (0)