mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
apply Black 2024 style in fbcode (5/16)
Summary: Formats the covered files with pyfmt. paintitblack Reviewed By: aleivag Differential Revision: D54447730 fbshipit-source-id: 85ed104b2f8f5e26ae0dea9ee17392ecad8b9407
This commit is contained in:
committed by
Facebook GitHub Bot
parent
746f1a70f4
commit
6393c2daf3
@@ -334,7 +334,7 @@ class AutoconfBuilder(BuilderBase):
|
|||||||
env = self._compute_env(install_dirs)
|
env = self._compute_env(install_dirs)
|
||||||
|
|
||||||
# Some configure scripts need additional env values passed derived from cmds
|
# Some configure scripts need additional env values passed derived from cmds
|
||||||
for (k, cmd_args) in self.conf_env_args.items():
|
for k, cmd_args in self.conf_env_args.items():
|
||||||
out = (
|
out = (
|
||||||
subprocess.check_output(cmd_args, env=dict(env.items()))
|
subprocess.check_output(cmd_args, env=dict(env.items()))
|
||||||
.decode("utf-8")
|
.decode("utf-8")
|
||||||
|
@@ -336,7 +336,7 @@ path = "{null_file}"
|
|||||||
|
|
||||||
crate_source_map = {}
|
crate_source_map = {}
|
||||||
if dep_crate_map:
|
if dep_crate_map:
|
||||||
for (crate, subpath) in dep_crate_map.items():
|
for crate, subpath in dep_crate_map.items():
|
||||||
if crate not in crate_source_map:
|
if crate not in crate_source_map:
|
||||||
if self.build_opts.is_windows():
|
if self.build_opts.is_windows():
|
||||||
subpath = subpath.replace("/", "\\")
|
subpath = subpath.replace("/", "\\")
|
||||||
@@ -444,7 +444,7 @@ path = "{null_file}"
|
|||||||
"""
|
"""
|
||||||
search_pattern = '[package]\nname = "{}"'.format(crate)
|
search_pattern = '[package]\nname = "{}"'.format(crate)
|
||||||
|
|
||||||
for (_crate, crate_source_dir) in crate_source_map.items():
|
for _crate, crate_source_dir in crate_source_map.items():
|
||||||
for crate_root, _, files in os.walk(crate_source_dir):
|
for crate_root, _, files in os.walk(crate_source_dir):
|
||||||
if "Cargo.toml" in files:
|
if "Cargo.toml" in files:
|
||||||
with open(os.path.join(crate_root, "Cargo.toml"), "r") as f:
|
with open(os.path.join(crate_root, "Cargo.toml"), "r") as f:
|
||||||
|
@@ -19,7 +19,7 @@ class Loader(object):
|
|||||||
|
|
||||||
def _list_manifests(self, build_opts):
|
def _list_manifests(self, build_opts):
|
||||||
"""Returns a generator that iterates all the available manifests"""
|
"""Returns a generator that iterates all the available manifests"""
|
||||||
for (path, _, files) in os.walk(build_opts.manifests_dir):
|
for path, _, files in os.walk(build_opts.manifests_dir):
|
||||||
for name in files:
|
for name in files:
|
||||||
# skip hidden files
|
# skip hidden files
|
||||||
if name.startswith("."):
|
if name.startswith("."):
|
||||||
|
Reference in New Issue
Block a user